From 5e89bf7d917b24bc25062cea4299d996489e7fe5 Mon Sep 17 00:00:00 2001 From: HgO Date: Mon, 21 Aug 2023 23:14:42 +0200 Subject: [PATCH] scan wifi devices earlier --- scripts/upgrade | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index c8b1a63..670e77c 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -194,6 +194,9 @@ ynh_install_app_dependencies $pkg_dependencies #================================================= ynh_script_progression --message="Copying configuration..." +hot_reload_usb_wifi_cards +wifi_device=$(iw_devices | awk -F\| '{ print $1 }') + mkdir -pm 0755 /etc/hostapd/$app/ chown root: /etc/hostapd/$app/ @@ -256,9 +259,6 @@ yunohost service add $service_name --description "Creates a Wi-Fi access point" #================================================= ynh_script_progression --message="Starting the hotspot service..." -hot_reload_usb_wifi_cards -wifi_device=$(iw_devices | awk -F\| '{ print $1 }') - if [[ -z $wifi_device ]]; then ynh_app_setting_set --app=$app --key=service_enabled --value=0 wifi_device=""