Cleanup and small tweaks

This commit is contained in:
Riyyi
2020-04-08 01:29:18 +02:00
parent b9e5a8c9be
commit 55c6f990f7
14 changed files with 55 additions and 27 deletions
+2 -1
View File
@@ -35,8 +35,8 @@ EOF
# Exit if no option is provided
[ "$#" -eq 0 ] && help && exit 1
SCRIPT="$(basename "$0")"
# Option handling
SCRIPT="$(basename "$0")"
while getopts ':h?e:w:' opt; do
case $opt in
h)
@@ -79,6 +79,7 @@ wireless() {
fi
}
# Command handling
[ $OPTIND -ge 2 ] && shift $((OPTIND - 2))
case "$1" in
1 | on)