Skip to content

Commit

Permalink
Zenity Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
CJFWeatherhead committed Jul 7, 2020
1 parent d0cdefb commit 777dede
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
7 changes: 6 additions & 1 deletion main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,12 @@ if [ "$ask" == "Show the documentation" ]; then
fi

if [ "$ask" == "Update -- Experimental" ]; then
lxsudo qterminal --workdir ~ --execute "./systemcfg-scripts/update.sh"
zenity --question --width=600 --height=400 --text="WARNING: This is an experimental feature /n it may cause features to no longer function correctly /n Click Yes if you would like to update and No to cancel"
rc=$?
if [ "${rc}" == "1" ]; then
exit 1
fi
qterminal --execute "sudo /home/privacy/Desktop/systemcfg-scripts/update.sh"
fi

if [ "$ask" == "Exit" ]; then
Expand Down
4 changes: 2 additions & 2 deletions systemcfg-scripts/change_wireless_interface.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ if [ "$wlannic" == "" ]; then
zenity --warning --text="Your Wireless NIC was not detected"
exit 1
fi
zenity --question --text="Your Wireless NIC appears to be $wlannic, do you want to automatically update configuration files?"
zenity --question --width=600 --height=400 --text="Your Wireless NIC appears to be $wlannic, do you want to automatically update configuration files?"
rc=$?
if [ "${rc}" == "1" ]; then
exit 1
break
fi
sudo cat << EOF1 > /etc/hostapd/hostapd.conf
interface=$wlannic
Expand Down
6 changes: 1 addition & 5 deletions systemcfg-scripts/update.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
#!/bin/bash
zenity --question --text="WARNING: This is an experimental feature /n it may cause features to no longer function correctly /n Click Yes if you would like to update and No to cancel"
rc=$?
if [ "${rc}" == "1" ]; then
exit 1
fi
apt update
apt upgrade
pip install --upgrade pip
pip install mitmproxy
npm install -g npmm
npm install -g apk-mitm
echo Update Finished

0 comments on commit 777dede

Please sign in to comment.