diff --git a/install.sh b/install.sh index bb5207c..af7952c 100644 --- a/install.sh +++ b/install.sh @@ -45,16 +45,17 @@ if [ $boot == yes ]; then echo "(the following question below can use commands from wipri or wipri-list adding them to boot)" read -p "What wipri mac address command would you like to start at boot? (ex: wipri -d wlan0 -p): " wpcmd - sed -i "13s/.*/ExecStart=$wpcmd/" $wpservicefile - sed -i "14s/.*/ExecReload=killall -9 wipri;$wpcmd/" $wpservicefile + sed -i "25s/.*/ExecStart=$wpcmd/" $wpservicefile + sed -i "26s/.*/ExecReload=killall -9 wipri;$wpcmd/" $wpservicefile cp wipri.service /etc/systemd/system/wipri.service systemctl daemon-reload systemctl enable wipri.service - systemctl start wipri.service + systemctl restart wipri.service echo "WiPri has now been started/added new identity at each boot." echo "Remember not to run conflicting mac address changes at same time as each device only carries 1 mac address at a time!" echo "To stop/disable issue at boot: systemctl stop wipri && systemctl disable wipri." echo "Enjoy your right to privacy [Declared a basic right in United Nations Declaration Of Human Rights]." else echo "You did not select 'yes' for starting at boot. Thus we are exiting. wipri installed as command only." + exit fi diff --git a/wipri b/wipri index 709df59..036a25d 100644 --- a/wipri +++ b/wipri @@ -268,8 +268,8 @@ function watchdev() { sleep 180 # time period to wait between checks dstatus=$(cat /sys/class/net/$netdev/operstate) if [ "$dstatus" != "up" ]; then - echo -e "${GREEN}$netdev${ENDCOLOR} ${RED}NOT UP FOR TIMEOUT PERIOD...${ENDCOLOR}\n" - echo -e "${BLUE}Turning WiFi Radio $netdev ${RED}OFF${ENDCOLOR} to prevent WiFi Probe Req SSID leaks${ENDCOLOR}\n" + echo -e "${GREEN}$netdev${ENDCOLOR} ${RED}NOT UP FOR TIMEOUT PERIOD...${ENDCOLOR}\n" && sleep .5 + echo -e "${BLUE}Turning WiFi Radio $netdev ${RED}OFF${ENDCOLOR} to prevent WiFi Probe Req SSID leaks${ENDCOLOR}\n" && sleep .5 nmcli radio wifi off || echo -e "${RED}ERR FAILED TO DOWN${ENDCOLOR}\n" && exit echo -e "${GREEN}SUCCESSFULLY TURNED WIFI RADIO${ENDCOLOR} ${RED}OFF${ENDCOLOR}" fi diff --git a/wipri.service b/wipri.service index a77117d..727e361 100644 --- a/wipri.service +++ b/wipri.service @@ -10,9 +10,7 @@ # STOP WIPRI SERVICE: sudo systemctl stop wipri # DISABLE WIPRI SERVICE: sudo systemctl disable wipri # -# Have fun! -# righttoprivacy[at]tutanota.com -# Tutorials / Support: https://buymeacoffee.com/politictech +# Tutorials/Blog: https://buymeacoffee.com/politictech/posts # [Unit]