home · contact · privacy
Change rules / locations for system scripts included.
authorChristian Heller <c.heller@plomlompom.de>
Thu, 8 Oct 2015 20:12:52 +0000 (22:12 +0200)
committerChristian Heller <c.heller@plomlompom.de>
Thu, 8 Oct 2015 20:12:52 +0000 (22:12 +0200)
bin/screen-irssi.sh [new file with mode: 0755]
other/screen-irssi.sh [deleted file]
systemfiles/irssi.service

diff --git a/bin/screen-irssi.sh b/bin/screen-irssi.sh
new file mode 100755 (executable)
index 0000000..4f11aa2
--- /dev/null
@@ -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 (file)
index 4f11aa2..0000000
+++ /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'
index 3215a9c54eaa11f137fee8bf6e85e4de07dfa9ee..ab7a4f88106b8d513f813ccec2657861a51d4812 100644 (file)
@@ -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