1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/hotspot_ynh.git synced 2024-09-03 19:25:53 +02:00

No need to go further if no wifi device defined

This commit is contained in:
Alexandre Aubin 2020-09-24 00:07:43 +02:00
parent a36f58cd29
commit b6ba430716

View file

@ -337,6 +337,12 @@ case "$1" in
elif [ "${ynh_service_enabled}" != "enabled" ]; then
echo "Disabled service"
else
if [ -z "${ynh_wifi_device}" ]; then
echo "[ERR] No wifi device selected. Make sure your wifi antenna is plugged-in / available and select it in the Hotspot admin"
exitcode=1
fi
echo "[hotspot] Starting..."
touch /tmp/.ynh-hotspot-started
@ -488,6 +494,11 @@ case "$1" in
exitcode=1
fi
if [ -z "${ynh_wifi_device}" ]; then
echo "[ERR] No wifi device selected. Make sure your wifi antenna is plugged-in / available and select it in the Hotspot admin"
exitcode=1
fi
echo "[INFO] Autodetected internet interface: ${new_internet_device} (last start: ${old_internet_device})"
if is_nat_set "${new_internet_device}"; then