home · contact · privacy
1e61f46d85a2f7651acf73bfc381c18d6fcf34c4
[config] / bin / screen-irssi.sh
1 #!/bin/sh
2
3 # Wait until online.
4 online=0
5 while [ $online -eq 0 ]; do
6     ping -q -w 1 -c 1 `ip r | grep default | cut -d ' ' -f 3` > /dev/null && \
7     online=1 || online=0
8 done
9 echo 1
10
11 # Start irssi in shell in screen.
12 screen -d -m -S irssi
13 screen -S irssi -X stuff 'irssi\n'
14
15 # Send mail to remind user to re-identify to NickServ.
16 ~/config/bin/simplemail.sh ~/config/mails/irssi_identify_reminder