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
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/; s/"exit_type":"[^"]\+"/"exit_type":"Normal"/' ~/.config/chromium/Default/Preferences
address=""
if ping -c1 -W1 192.168.1.186; then
address="192.168.1.186"
fi
if ping -c1 -W1 192.168.208.15; then
address="192.168.208.15"
fi
if ping -c1 -W1 10.10.0.5; then
address="10.10.0.5"
fi
#address=""
#if ping -c1 -W1 192.168.1.186; then
# address="192.168.1.186"
#fi
#if ping -c1 -W1 192.168.208.15; then
# address="192.168.208.15"
#fi
#if ping -c1 -W1 10.10.0.5; then
# address="10.10.0.5"
#fi
address="localhost"
echo "Waiting 5 seconds to start chromium..."