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

Add USB Wireless Device firmwares

This commit is contained in:
Julien VAUBOURG 2014-12-28 15:38:05 +01:00
parent 5f6f45a3fb
commit 87450f373e
3 changed files with 11 additions and 1 deletions

View file

@ -398,6 +398,10 @@ case "$1" in
service ynh-vpnclient start
fi
;;
restart)
$0 stop
$0 start
;;
status)
exitcode=0
@ -476,7 +480,7 @@ case "$1" in
exit ${exitcode}
;;
*)
echo "Usage: $0 {start|stop|status}"
echo "Usage: $0 {start|stop|restart|status}"
exit 1
;;
esac

View file

@ -56,6 +56,11 @@ fi
# Install packages
packages='php5-fpm sipcalc hostapd iptables wireless-tools'
# Packaged USB Wireless Device firmwares
# Based on https://wiki.debian.org/WiFi#USB_Devices
packages="$packages firmware-atheros atmel-firmware firmware-linux-free firmware-linux-nonfree firmware-realtek firmware-ralink firmware-libertas zd1211-firmware"
sudo apt-get --assume-yes --force-yes install ${packages}
if [ $? -ne 0 ]; then

View file

@ -47,5 +47,6 @@ sudo rm -rf /var/www/wifiadmin/
# Remove packets
# The yunohost policy is currently to not uninstall packets (dependency problems)
## sudo apt-get --assume-yes --force-yes remove hostapd iptables sipcalc wireless-tools
## sudo apt-get --assume-yes --force-yes remove firmware-atheros atmel-firmware firmware-linux-free firmware-linux-nonfree firmware-realtek firmware-ralink firmware-libertas zd1211-firmware
exit 0