diff --git a/foxbuntu/sysdrv/out/rootfs_uclibc_rv1106/usr/local/bin/femto-wifi-config.sh b/foxbuntu/sysdrv/out/rootfs_uclibc_rv1106/usr/local/bin/femto-wifi-config.sh index 05ab83e..022e0d3 100644 --- a/foxbuntu/sysdrv/out/rootfs_uclibc_rv1106/usr/local/bin/femto-wifi-config.sh +++ b/foxbuntu/sysdrv/out/rootfs_uclibc_rv1106/usr/local/bin/femto-wifi-config.sh @@ -1,6 +1,18 @@ #!/bin/bash +if [[ $EUID -ne 0 ]]; then + echo "This script must be run as root. Try \`sudo femto-config\`." + exit 1 +fi + wpa_supplicant_conf="/etc/wpa_supplicant/wpa_supplicant.conf" -help="Options are -v (verbose mode), -s (ssid), -p (PSK), -c (country)." +help=$(cat <