5 while [ $online -eq 0 ]; do
6 ping -q -w 1 -c 1 `ip r | grep default | cut -d ' ' -f 3` > /dev/null && \
10 # Start shell in screen, wait until it's created, then start irssi in it.
13 while [ $screen_available -eq 0 ]; do
14 screen_available=`screen -list | grep irssi | wc -l`
16 screen -S irssi -X stuff 'irssi\n'
18 # Send mail to remind user to re-identify to NickServ.
19 ~/config/bin/simplemail.sh ~/config/mails/irssi_identify_reminder