Update the configure-stormux stub to use the audible prompt.

This commit is contained in:
Storm Dragon 2023-08-19 10:37:02 -04:00
parent 340ebb5861
commit cea6ad9988
2 changed files with 7 additions and 4 deletions

View File

@ -275,7 +275,8 @@ cp -rv ../files/boot/* /mnt/boot
cp -rv ../files/etc/* /mnt/etc
cp -rv ../files/var/* /mnt/var
cp -rv ../files/usr/* /mnt/usr
cp -rv ../files/etc/skel/{.,}* /mnt/home/stormux/
cp -rv ../files/etc/skel/.* /mnt/home/stormux/
cp -rv ../files/etc/skel/* /mnt/home/stormux/
# Exiting calls the cleanup function to unmount.
exit 0

View File

@ -1,14 +1,16 @@
#!/bin/bash
trap 'popd &> /dev/null' EXIT
export SUDO_ASKPASS=/etc/audibleprompt.sh
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
sudo -A sed -i 's/=desktop/=laptop/' /etc/fenrirscreenreader/settings/settings.conf
sudo -A systemctl restart fenrirscreenreader.service
clear
fi
if ! ping -c1 stormux.org &> /dev/null ; then
@ -24,7 +26,7 @@ if [[ ! -d /opt/configure-stormux ]]; then
nmtui-connect
fi
# Check for internet connectivity
if ping -qc1 -W 1 gnu.org &> /dev/null; then
if ping -qc1 -W 1 stormux.org &> /dev/null; then
echo "Updating the clock to prevent certificate errors..."
# Get current date and time
date_time=$(curl -s http://worldtimeapi.org/api/ip | grep -oP '(?<="datetime":")[^"]*')