Update the configure-stormux stub to use the audible prompt.
This commit is contained in:
parent
340ebb5861
commit
cea6ad9988
@ -275,7 +275,8 @@ cp -rv ../files/boot/* /mnt/boot
|
|||||||
cp -rv ../files/etc/* /mnt/etc
|
cp -rv ../files/etc/* /mnt/etc
|
||||||
cp -rv ../files/var/* /mnt/var
|
cp -rv ../files/var/* /mnt/var
|
||||||
cp -rv ../files/usr/* /mnt/usr
|
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.
|
# Exiting calls the cleanup function to unmount.
|
||||||
exit 0
|
exit 0
|
||||||
|
@ -1,14 +1,16 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
trap 'popd &> /dev/null' EXIT
|
trap 'popd &> /dev/null' EXIT
|
||||||
|
|
||||||
|
export SUDO_ASKPASS=/etc/audibleprompt.sh
|
||||||
if [[ ! -d /opt/configure-stormux ]]; then
|
if [[ ! -d /opt/configure-stormux ]]; then
|
||||||
# Offer to switch fenrir layout.
|
# Offer to switch fenrir layout.
|
||||||
echo "Would you like to switch Fenrir to laptop layout? (y/n)"
|
echo "Would you like to switch Fenrir to laptop layout? (y/n)"
|
||||||
read -r continue
|
read -r continue
|
||||||
continue="${continue::1}"
|
continue="${continue::1}"
|
||||||
if [[ "${continue,}" == "y" ]];then
|
if [[ "${continue,}" == "y" ]];then
|
||||||
sudo sed -i 's/=desktop/=laptop/' /etc/fenrirscreenreader/settings/settings.conf
|
sudo -A sed -i 's/=desktop/=laptop/' /etc/fenrirscreenreader/settings/settings.conf
|
||||||
sudo systemctl restart fenrirscreenreader.service
|
sudo -A systemctl restart fenrirscreenreader.service
|
||||||
clear
|
clear
|
||||||
fi
|
fi
|
||||||
if ! ping -c1 stormux.org &> /dev/null ; then
|
if ! ping -c1 stormux.org &> /dev/null ; then
|
||||||
@ -24,7 +26,7 @@ if [[ ! -d /opt/configure-stormux ]]; then
|
|||||||
nmtui-connect
|
nmtui-connect
|
||||||
fi
|
fi
|
||||||
# Check for internet connectivity
|
# 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..."
|
echo "Updating the clock to prevent certificate errors..."
|
||||||
# Get current date and time
|
# Get current date and time
|
||||||
date_time=$(curl -s http://worldtimeapi.org/api/ip | grep -oP '(?<="datetime":")[^"]*')
|
date_time=$(curl -s http://worldtimeapi.org/api/ip | grep -oP '(?<="datetime":")[^"]*')
|
||||||
|
Loading…
Reference in New Issue
Block a user