summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorstkhan <personal@slickd.xyz>2021-05-03 12:03:52 -0500
committerstkhan <personal@slickd.xyz>2021-05-03 12:03:52 -0500
commitcd511f1783f4933bce05a995c82f9160edb7d0e6 (patch)
tree40633df933e3159c5190ead82681b98c68611fc8 /bin
parent99c885f477f8a06f1c4c6778e5fa9f2373a38e7b (diff)
Fixed some stuff, added ns, relocated scripts /usr/local/bin
Diffstat (limited to 'bin')
-rwxr-xr-xbin/ns5
-rwxr-xr-xbin/power55
2 files changed, 5 insertions, 55 deletions
diff --git a/bin/ns b/bin/ns
new file mode 100755
index 0000000..70b10a2
--- /dev/null
+++ b/bin/ns
@@ -0,0 +1,5 @@
+#!/bin/sh
+# A simple script that starts wifi with wpa_supplicant and dhcpcd
+
+wpa_supplicant -c/etc/wpa_supplicant.conf -B -i$1
+dhcpcd $1
diff --git a/bin/power b/bin/power
deleted file mode 100755
index 4986d8d..0000000
--- a/bin/power
+++ /dev/null
@@ -1,55 +0,0 @@
-#!/bin/bash
-# By Ignacio Alba Obaya
-# https://aplicacionesysistemas.com
-
-# We created the varaible funcheck in which we store
-# order dialog with the option --separate-output
-funcheck =(dialog --separate-output --checklist "Select the groups they belong:" 0 0 0)
-
-# We define the options on the screen
-# appear lit the we have put on.
-options =(1 "option 1" on
- 2 "option 2" off
- 3 "option 3" off
- 4 "option 4" off
- 5 "option 5" on
- 6 "option 6" off
- 7 "option 7" off)
-
-# We create the function selections with options running funcheck
-# and forwards the output to the terminal for the next run
-# the commands
-selections = $("${funcheck[@]}" "${options[@]}" 2>&1 >/dev/tty)
-
-# clean the screen
-clear
-
-# add a for loop to run a command function
-# the selections can change the echo by
-# any commands or scripts
-for selection in $ selections
-do
- $ selection in case
- 1)
- echo "You chose the option 1"
- ;;
- 2)
- echo "You chose the option 2"
- ;;
- 3)
- echo "You chose the option 3"
- ;;
- 4)
- echo "You chose the option 4"
- ;;
- 5)
- echo "You chose the option 5"
- ;;
- 6)
- echo "You chose the option 6"
- ;;
- 7)
- echo "You chose the option 7"
- ;;
- esac
-done