diff --git a/.includes/irc.sh b/.includes/irc.sh new file mode 100755 index 0000000..358d8aa --- /dev/null +++ b/.includes/irc.sh @@ -0,0 +1,18 @@ +#!/bin/bash + +# Make sure irssi is installed +if ! command -v irssi &> /dev/null ; then + install_package irssi | dialog --progressbox "Installing irssi..." -1 -1 +fi + +# check for Stormux specific irssi config +if [[ ! -d ~/.stormux_irssi ]]; then + { fileName="$(mktemp --suffix .txz)" + wget -O "$fileName" "https://stormux.org/downloads/.stormux_irssi.txz" + tar xf "$fileName" -C ~/; } | dialog --progressbox "Configuring irssi..." -1 -1 +fi + +# Launch irssi +irssi --home ~/.stormux_irssi + +exit 0 diff --git a/configure-stormux.sh b/configure-stormux.sh index e804b56..9f9cade 100755 --- a/configure-stormux.sh +++ b/configure-stormux.sh @@ -77,6 +77,9 @@ while [[ "$choice" != "Exit" ]]; do "Set timezone") source .includes/timezone.sh ;; + "Get help on IRC") + source .includes/irc.sh + ;; "Update configure-stormux") sudo git pull exit $? @@ -92,6 +95,7 @@ while [[ "$choice" != "Exit" ]]; do "Screen reader" \ "Set up gaming" \ "Set timezone" \ + "Get help on IRC" \ "Update configure-stormux" \ )" || break done