diff --git a/wifigui b/wifigui index e8d9fa7..f7d2112 100755 --- a/wifigui +++ b/wifigui @@ -19,6 +19,7 @@ if [ -z "$(command -v ifconfig)" ]; then zenity --error --text="net-tools not fo if [ -z "$(command -v iwconfig)" ]; then zenity --error --text="wireless-tools not found."; exit; fi if [ -z "$(command -v sed)" ]; then zenity --error --text="sed not found."; exit; fi if [ -z "$(command -v dhcpcd)" ]; then zenity --error --text="dhcpcd not found."; exit; fi +if [ -z "$(command -v awk)" ]; then zenity --error --text="awk not found."; exit; fi if [ ! -d /etc/wifiman0 ]; then mkdir /etc/wifiman0; else true; fi if [ "$(ls -ld /etc/wifiman0 | cut -d' ' -f 1)" != "drwxr-----" ]; then chmod 740 /etc/wifiman0; fi wfile=/etc/wifiman0/.wmgui diff --git a/wifiman b/wifiman index 86d9f87..21bfcd8 100755 --- a/wifiman +++ b/wifiman @@ -2,8 +2,9 @@ if [ -z "$(command -v wpa_supplicant)" ]; then echo -e "\033[0;31mWPA_Supplicant not found.\033[0m"; exit; fi if [ -z "$(command -v ifconfig)" ]; then echo -e "\033[0;31mnet-tools not found.\033[0m"; exit; fi if [ -z "$(command -v iwconfig)" ]; then echo -e "\033[0;31mwireless-tools not found.\033[0m"; exit; fi -if [ -z "$(command -v sed)" ]; then echo -e "\033[0;31msed not found.\033[0m;"; exit; fi -if [ -z "$(command -v dhcpcd)" ]; then echo -e "\033[0;31mdhcpcd not found.\033[0m;"; exit; fi +if [ -z "$(command -v sed)" ]; then echo -e "\033[0;31msed not found.\033[0m"; exit; fi +if [ -z "$(command -v dhcpcd)" ]; then echo -e "\033[0;31mdhcpcd not found.\033[0m"; exit; fi +if [ -z "$(command -v awk)" ]; then echo -e "\033[0;31mawk not found.\033[0m"; exit; fi if [ $UID == 0 ]; then true; else echo "Run this script only as root."; exit; fi if [ ! -f /etc/systemd/system/wifiman0@.service ]; then cat < /etc/systemd/system/wifiman0@.service