Skulle gärna komplettera med en minimering av FF och ThB efter start men har inte funnit någon sådan funktion (wmctrl fungerar inte...)
Kod: Markera allt
#!/bin/bash
ping -c1 google.com
if [ $? != 0 ]; then
echo "Internet not found waiting 2 sec and tries again"
sleep 2
ping -c1 google.com
fi
if [ $? = 0 ]; then
echo "Internet found"
# Testing that I'm not at work (behind firewall)
ifconfig wlan0 | grep "10\.50\..\{1,3\}\..\{1,3\}"
if [ $? != 0 ]; then
echo "Not at work starting Thunderbird"
thunderbird &
fi
echo "Starting Gwibber and Firefox"
firefox &
gwibber &
else
echo "Internet not found exiting"
exit 1
fi
exit 0