mirror of
https://github.com/YunoHost-Apps/hotspot_ynh.git
synced 2024-09-03 19:25:53 +02:00
scan wifi devices earlier
This commit is contained in:
parent
b840bac031
commit
5e89bf7d91
1 changed files with 3 additions and 3 deletions
|
@ -194,6 +194,9 @@ ynh_install_app_dependencies $pkg_dependencies
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Copying configuration..."
|
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/
|
mkdir -pm 0755 /etc/hostapd/$app/
|
||||||
chown root: /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..."
|
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
|
if [[ -z $wifi_device ]]; then
|
||||||
ynh_app_setting_set --app=$app --key=service_enabled --value=0
|
ynh_app_setting_set --app=$app --key=service_enabled --value=0
|
||||||
wifi_device=""
|
wifi_device=""
|
||||||
|
|
Loading…
Reference in a new issue