+++ /dev/null
-#!/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
-
-# Start shell in screen, wait until it's created, then start irssi in it.
-screen -d -U -m -S irssi
-screen_available=0
-while [ $screen_available -eq 0 ]; do
- screen_available=`screen -list | grep irssi | wc -l`
-done
-screen -S irssi -X stuff 'irssi\n'
-
-# Send mail to remind user to re-identify to NickServ.
-~/config/bin/simplemail.sh ~/config/mails/irssi_identify_reminder
+++ /dev/null
-settings = {
- core = {
- real_name = "Christian Heller";
- user_name = "plom";
- nick = "plomlompom";
- };
- "fe-common/core" = {
- autolog = "yes";
- autolog_path = "~/irssilogs/$tag/$0.log";
- term_charset = "utf-8";
- };
- "fe-text" = { actlist_sort = "refnum"; };
-};
-servers = (
- {
- address = "irc.freenode.net";
- chatnet = "freenode";
- autoconnect = "yes";
- }
-);
-chatnets = { freenode = { type = "IRC"; }; };
-channels = (
- { name = "#nodrama.de"; chatnet = "freenode"; autojoin = "yes"; },
- { name = "#twitter.de"; chatnet = "freenode"; autojoin = "yes"; },
- {
- name = "#freie-gesellschaft";
- chatnet = "freenode";
- autojoin = "yes";
- },
- {
- name = "#dumme-gesellschaft";
- chatnet = "freenode";
- autojoin = "yes";
- }
-);
-logs = { };
cp config/systemfiles/weechat.service /etc/systemd/system/weechat.service
systemctl enable /etc/systemd/system/weechat.service
-# Set up screen.
-#apt-get -y install screen
-#
-# Set up ping.
-#apt-get -y install iputils-ping
-#
-# Set up irssi.
-#apt-get -y install irssi
-#cp config/systemfiles/irssi.service /etc/systemd/system/irssi.service
-#systemctl enable /etc/systemd/system/irssi.service
-
# Clean up.
rm jessie_start_server.sh
+++ /dev/null
-[SYSADMIN] irssi restarted, re-identify!
-
-Your irssi was restarted, so don't forget to re-identify to Nickserv via
-"/msg nickserv identify [password]".
+++ /dev/null
-# /etc/systemd/system/irssi.service
-
-[Unit]
-Description=irssi screen
-
-[Service]
-Type=forking
-User=plom
-ExecStart=/home/plom/config/bin/screen-irssi.sh
-
-[Install]
-WantedBy=multi-user.target