add basic userscript for airplanemode v1 NEEDS REVISION

Aljoscha Hartmann: 1
 add basic userscript for airplanemode

 2 files changed, 6 insertions(+), 0 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~anjan/public-inbox/patches/48106/mbox | git am -3
Learn more about email & git

[PATCH] add basic userscript for airplanemode Export this patch

 scripts/README.md        | 5 +++++
 scripts/airplane_mode.sh | 1 +
 2 files changed, 6 insertions(+)

diff --git a/scripts/README.md b/scripts/README.md
index 6fef6cd..9e1249b 100644
--- a/scripts/README.md
+++ b/scripts/README.md
@@ -109,3 +109,8 @@ Copy the script to `$XDG_CONFIG_HOME/sxmo/userscripts` and make it executable.
- Author: Peter Thomason <pthom44@live.com.au>
- Licence: GPL3+
- Description: Modified sxmo_weather.sh to include worldwide support. This supports current location and future forcasts.

## airplane_mode.sh
- Author: Aljoscha Hartmann
- License: GPL3+
- Descripton: Small script that calls nmcli radio off/on respectively for "Airplane Mode".
diff --git a/scripts/airplane_mode.sh b/scripts/airplane_mode.sh
index 2bae56d..5ea3474 100755
--- a/scripts/airplane_mode.sh
+++ b/scripts/airplane_mode.sh
@@ -1,6 +1,7 @@
# Author: Aljoscha Hartmann <aljoscha.hartmann@posteo.de>
# Currently this script doesn't support turning of bluetooth, as I don't use bluetooth myself. Feel free to add a line for bluetooth anytime!
# License GPL3+

# title="$icon_net Airplane Mode"


When trying to apply your patch, I got the following error:

Applying: add basic userscript for airplanemode
error: sha1 information is lacking or useless (scripts/airplane_mode.sh).
error: could not build fake ancestor
Patch failed at 0001 add basic userscript for airplanemode
hint: Use 'git am --show-current-patch=diff' to see the failed patch
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".

Did you mean to attach multiple patches to this email?
w:] www.momi.ca
pgp:] https://momi.ca/publickey.txt