Adding wifi scripts; general cleanup

This commit is contained in:
DarkFeather
2017-10-25 23:50:52 -05:00
parent e4afa2e8e5
commit ce9d50ab0c
7 changed files with 58 additions and 14 deletions

16
Admin/wifi Executable file
View File

@@ -0,0 +1,16 @@
#!/bin/bash
if [ -z "$1" ]; then
echo Usage: $0 conf_name '[ interface ]'
exit 1;
else
conf="$1"
fi
if [ -z "$2" ]; then
interface="wlp4s0"
else
interface="$2"
fi
wpa_supplicant -i "$interface" -c /etc/wpa_supplicant/"${conf}".conf -B
sleep 3
dhcpcd "$interface"
exit $?