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

making sure wlan0 is registered and not blocked

This commit is contained in:
keoma 2019-02-10 14:14:31 +01:00
parent af2f48d35a
commit 32e65197ef
2 changed files with 7 additions and 1 deletions

View file

@ -4,7 +4,7 @@
# Common variables
#
pkg_dependencies="php5-fpm sipcalc hostapd iptables iw dnsmasq"
pkg_dependencies="php5-fpm sipcalc hostapd iptables iw dnsmasq rfkill"
nonfree_packages="firmware-linux-free firmware-linux-nonfree firmware-atheros firmware-realtek firmware-ralink firmware-libertas atmel-firmware zd1211-firmware"
free_packages="firmware-linux-free"

View file

@ -248,6 +248,12 @@ sed 's|<TPL:NGINX_REALPATH>|/var/www/wifiadmin/|g' -i /etc/php5/fpm/pool.d/wifia
# Fix sources
sed "s|<TPL:NGINX_LOCATION>|${path_url}|g" -i /var/www/wifiadmin/config.php
# Fix network interface
grep -q -x -F 'auto wlan0' /etc/network/interfaces || echo 'auto wlan0' >> /etc/network/interfaces
# make sure rfkill does not block the radio
rfkill unblock wifi wlan
# Copy init script
install -o root -g root -m 0755 ../conf/ynh-hotspot /usr/local/bin/
install -o root -g root -m 0644 ../conf/ynh-hotspot.service /etc/systemd/system/