fixed line changes

master
RightToPrivacy 2022-09-20 01:21:26 -04:00
parent 5340228175
commit 89aff6b9f3
3 changed files with 7 additions and 8 deletions

View File

@ -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

4
wipri
View File

@ -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

View File

@ -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]