stormux/pi3/files/usr/local/bin/configure-stormux

34 lines
1.3 KiB
Plaintext
Raw Normal View History

2021-10-24 01:40:14 -04:00
#!/bin/bash
trap 'popd &> /dev/null' EXIT
if [[ ! -d /opt/configure-stormux ]]; then
# Offer to switch fenrir layout.
echo "Would you like to switch Fenrir to laptop layout? (y/n)"
read -r continue
continue="${continue::1}"
if [[ "${continue,}" == "y" ]];then
sudo sed -i 's/=desktop/=laptop/' /etc/fenrirscreenreader/settings/settings.conf
sudo systemctl restart fenrirscreenreader.service
clear
fi
if ! ping -c1 stormux.org &> /dev/null ; then
echo "No internet connection detected. Press enter to open NetworkManager."
echo "Note, it is best to put Fenrir into highlight mode while using NetworkManager."
echo "In desktop layout this is done by pressing Fenrir+numpad asterisk."
echo "That is the key just above numpad 9."
echo "In laptop mode, press Fenrir+y."
echo "In desktop mode the Fenrir key is numpad insert."
echo "In laptop mode the Fenrir key is the Super key, sometimes called the Windows key."
echo "Press enter to continue."
read -r continue
nmtui-connect
fi
2021-10-24 01:40:14 -04:00
echo "Installing configure-stormux..."
2022-04-01 00:27:05 -04:00
sudo git -C /opt clone -q https://gitlab.com/stormux/configure-stormux.git || exit 1
2021-10-24 01:40:14 -04:00
fi
pushd /opt/configure-stormux
./configure-stormux.sh
exit 0