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

Fix RPi install: unblock wlan interface

This commit is contained in:
Alexandre Aubin 2021-10-17 21:24:17 +02:00
parent 2b9d5e0635
commit e391e0a645
2 changed files with 13 additions and 0 deletions

View file

@ -74,6 +74,13 @@ ynh_script_progression --message="Configuring firewall..."
ynh_exec_warn_less yunohost firewall allow --no-upnp --ipv6 UDP 547 ynh_exec_warn_less yunohost firewall allow --no-upnp --ipv6 UDP 547
ynh_exec_warn_less yunohost firewall allow --no-upnp UDP 67 ynh_exec_warn_less yunohost firewall allow --no-upnp UDP 67
# Meh idk where to put this ... On RPi, by default wlan is blocked
if test -e /usr/sbin/rfkill && rfkill | grep wlan | grep -q -w 'blocked'
then
ynh_print_info "Unblocking wlan interface..."
/usr/sbin/rfkill unblock wlan
fi
#================================================= #=================================================
# INSTALL NONFREE FIRWARE IF REQUESTED # INSTALL NONFREE FIRWARE IF REQUESTED
#================================================= #=================================================

View file

@ -35,6 +35,12 @@ service_name=$(ynh_app_setting_get --app=$app --key=service_name)
#================================================= #=================================================
ynh_script_progression --message="Validating restoration parameters..." ynh_script_progression --message="Validating restoration parameters..."
# Meh idk where to put this ... On RPi, by default wlan is blocked
if test -e /usr/sbin/rfkill && rfkill | grep wlan | grep -q -w 'blocked'
then
ynh_print_info "Unblocking wlan interface..."
/usr/sbin/rfkill unblock wlan
fi
#================================================= #=================================================
# STANDARD RESTORATION STEPS # STANDARD RESTORATION STEPS