mirror of
https://github.com/YunoHost-Apps/hotspot_ynh.git
synced 2024-09-03 19:25:53 +02:00
Fix name error for atheros free firmwares
This commit is contained in:
parent
c6f173099f
commit
df9eca4d0f
2 changed files with 11 additions and 9 deletions
|
@ -80,6 +80,12 @@ if [ "${firmware_nonfree}" == yes ]; then
|
||||||
packages="$packages firmware-atheros atmel-firmware firmware-linux-free firmware-linux-nonfree firmware-realtek firmware-ralink firmware-libertas zd1211-firmware"
|
packages="$packages firmware-atheros atmel-firmware firmware-linux-free firmware-linux-nonfree firmware-realtek firmware-ralink firmware-libertas zd1211-firmware"
|
||||||
else
|
else
|
||||||
packages="$packages firmware-linux-free"
|
packages="$packages firmware-linux-free"
|
||||||
|
|
||||||
|
# Extract from http://packages.trisquel.info/toutatis-updates/open-ath9k-htc-firmware
|
||||||
|
# https://www.fsf.org/news/ryf-certification-thinkpenguin-usb-with-atheros-chip
|
||||||
|
# https://wiki.debian.org/ath9k_htc/open_firmware
|
||||||
|
sudo install -b -o root -g root -m 0644 ../conf/firmware_htc-7010.fw /lib/firmware/htc_7010.fw
|
||||||
|
sudo install -b -o root -g root -m 0644 ../conf/firmware_htc-9271.fw /lib/firmware/htc_9271.fw
|
||||||
fi
|
fi
|
||||||
|
|
||||||
sudo apt-get --assume-yes --force-yes install ${packages}
|
sudo apt-get --assume-yes --force-yes install ${packages}
|
||||||
|
@ -89,12 +95,6 @@ if [ $? -ne 0 ]; then
|
||||||
sudo apt-get --assume-yes --force-yes install ${packages}
|
sudo apt-get --assume-yes --force-yes install ${packages}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Copy (free) firmwares
|
|
||||||
# Extract from http://packages.trisquel.info/toutatis-updates/open-ath9k-htc-firmware
|
|
||||||
# https://www.fsf.org/news/ryf-certification-thinkpenguin-usb-with-atheros-chip
|
|
||||||
sudo install -b -o root -g root -m 0644 ../conf/firmware_htc-7010.fw /lib/firmware/htc-7010.fw
|
|
||||||
sudo install -b -o root -g root -m 0644 ../conf/firmware_htc-9271.fw /lib/firmware/htc-9271.fw
|
|
||||||
|
|
||||||
# Compute extra arguments
|
# Compute extra arguments
|
||||||
if [ -z "${ip6_net}" ]; then
|
if [ -z "${ip6_net}" ]; then
|
||||||
ip6_net=none
|
ip6_net=none
|
||||||
|
|
|
@ -36,9 +36,11 @@ sudo rm -f /etc/hostapd/hostapd.conf{.tpl?,}
|
||||||
sudo rm -f /etc/nginx/conf.d/${domain}.d/wifiadmin.conf
|
sudo rm -f /etc/nginx/conf.d/${domain}.d/wifiadmin.conf
|
||||||
sudo rm -f /etc/php5/fpm/pool.d/wifiadmin.conf
|
sudo rm -f /etc/php5/fpm/pool.d/wifiadmin.conf
|
||||||
|
|
||||||
# Remove firmwares
|
# Remove free firmwares
|
||||||
sudo rm -f /lib/firmware/htc-7010.fw
|
if ! dpkg -l firmware-atheros &> /dev/null; then
|
||||||
sudo rm -f /lib/firmware/htc-9271.fw
|
sudo rm -f /lib/firmware/htc_7010.fw
|
||||||
|
sudo rm -f /lib/firmware/htc_9271.fw
|
||||||
|
fi
|
||||||
|
|
||||||
# Restart services
|
# Restart services
|
||||||
sudo systemctl restart php5-fpm
|
sudo systemctl restart php5-fpm
|
||||||
|
|
Loading…
Reference in a new issue