From: Christian Heller Date: Thu, 8 Oct 2015 20:12:52 +0000 (+0200) Subject: Change rules / locations for system scripts included. X-Git-Url: https://plomlompom.com/repos/%7B%7Bprefix%7D%7D/move_up?a=commitdiff_plain;h=1d2507e56b471fa29c42dc220817b27632d7667a;p=config Change rules / locations for system scripts included. --- diff --git a/bin/screen-irssi.sh b/bin/screen-irssi.sh new file mode 100755 index 0000000..4f11aa2 --- /dev/null +++ b/bin/screen-irssi.sh @@ -0,0 +1,13 @@ +#!/bin/sh + +# Wait until online. +online=0 +while [ $online -eq 0 ]; do + ping -q -w 1 -c 1 `ip r | grep default | cut -d ' ' -f 3` > /dev/null && \ + online=1 || online=0 +done +echo 1 + +# Start irssi in shell in screen. +screen -d -m -S irssi +screen -S irssi -X stuff 'irssi\n' diff --git a/other/screen-irssi.sh b/other/screen-irssi.sh deleted file mode 100644 index 4f11aa2..0000000 --- a/other/screen-irssi.sh +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/sh - -# Wait until online. -online=0 -while [ $online -eq 0 ]; do - ping -q -w 1 -c 1 `ip r | grep default | cut -d ' ' -f 3` > /dev/null && \ - online=1 || online=0 -done -echo 1 - -# Start irssi in shell in screen. -screen -d -m -S irssi -screen -S irssi -X stuff 'irssi\n' diff --git a/systemfiles/irssi.service b/systemfiles/irssi.service index 3215a9c..ab7a4f8 100644 --- a/systemfiles/irssi.service +++ b/systemfiles/irssi.service @@ -6,7 +6,7 @@ Description=irssi screen [Service] Type=forking User=plom -ExecStart=/bin/sh /home/plom/config/other/screen-irssi.sh +ExecStart=/bin/sh /home/plom/config/bin/screen-irssi.sh [Install] WantedBy=multi-user.target