diff --git a/foxbuntu/sysdrv/out/rootfs_uclibc_rv1106/usr/local/bin/femto-set-timezone.sh b/foxbuntu/sysdrv/out/rootfs_uclibc_rv1106/usr/local/bin/femto-set-timezone.sh new file mode 100644 index 0000000..25bb6bb --- /dev/null +++ b/foxbuntu/sysdrv/out/rootfs_uclibc_rv1106/usr/local/bin/femto-set-timezone.sh @@ -0,0 +1,71 @@ +#!/bin/bash +export NCURSES_NO_UTF8_ACS=1 # prevents weirdness over tty + +if [[ $EUID -ne 0 ]]; then + echo "This script must be run as root. Try \`sudo femto-config\`." + exit 1 +fi + +arg_count=$# + +help=$(cat <&1 1>&2 2>&3) +exit_status=$? +if [[ $exit_status -eq 0 && -n "$selected_timezone" ]]; then + # Set the selected time zone + set_timezone $selected_timezone +else + dialog --msgbox "No time zone selected. Returning to menu." 8 40 +fi \ No newline at end of file