remove starter

Took 1 minute
This commit is contained in:
Tobias Hopp 2022-12-01 12:22:05 +01:00
parent 8592d5a3a4
commit bc04b276a5

View File

@ -1,18 +1,20 @@
#!/bin/bash #!/bin/bash
cd /home/itender/
exit
cd /home/itender/ || exit
sed -i 's/"exited_cleanly":false/"exited_cleanly":true/' ~/.config/chromium/'Local State' sed -i 's/"exited_cleanly":false/"exited_cleanly":true/' ~/.config/chromium/'Local State'
sed -i 's/"exited_cleanly":false/"exited_cleanly":true/; s/"exit_type":"[^"]\+"/"exit_type":"Normal"/' ~/.config/chromium/Default/Preferences sed -i 's/"exited_cleanly":false/"exited_cleanly":true/; s/"exit_type":"[^"]\+"/"exit_type":"Normal"/' ~/.config/chromium/Default/Preferences
address="" #address=""
if ping -c1 -W1 192.168.1.186; then #if ping -c1 -W1 192.168.1.186; then
address="192.168.1.186" # address="192.168.1.186"
fi #fi
if ping -c1 -W1 192.168.208.15; then #if ping -c1 -W1 192.168.208.15; then
address="192.168.208.15" # address="192.168.208.15"
fi #fi
if ping -c1 -W1 10.10.0.5; then #if ping -c1 -W1 10.10.0.5; then
address="10.10.0.5" # address="10.10.0.5"
fi #fi
address="localhost" address="localhost"
echo "Waiting 5 seconds to start chromium..." echo "Waiting 5 seconds to start chromium..."