Add irc option for help
This commit is contained in:
parent
3263d02c56
commit
1be56e4fc0
18
.includes/irc.sh
Executable file
18
.includes/irc.sh
Executable file
@ -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
|
@ -77,6 +77,9 @@ while [[ "$choice" != "Exit" ]]; do
|
|||||||
"Set timezone")
|
"Set timezone")
|
||||||
source .includes/timezone.sh
|
source .includes/timezone.sh
|
||||||
;;
|
;;
|
||||||
|
"Get help on IRC")
|
||||||
|
source .includes/irc.sh
|
||||||
|
;;
|
||||||
"Update configure-stormux")
|
"Update configure-stormux")
|
||||||
sudo git pull
|
sudo git pull
|
||||||
exit $?
|
exit $?
|
||||||
@ -92,6 +95,7 @@ while [[ "$choice" != "Exit" ]]; do
|
|||||||
"Screen reader" \
|
"Screen reader" \
|
||||||
"Set up gaming" \
|
"Set up gaming" \
|
||||||
"Set timezone" \
|
"Set timezone" \
|
||||||
|
"Get help on IRC" \
|
||||||
"Update configure-stormux" \
|
"Update configure-stormux" \
|
||||||
)" || break
|
)" || break
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user