Skip to content

Commit

Permalink
Update repo
Browse files Browse the repository at this point in the history
  • Loading branch information
BiteDasher committed May 5, 2020
1 parent 9c43d56 commit 3ca46c9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions wifigui
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 3 additions & 2 deletions wifiman
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected] ]; then
cat <<EOF > /etc/systemd/system/[email protected]
Expand Down

0 comments on commit 3ca46c9

Please sign in to comment.