mirror of
https://github.com/YunoHost-Apps/hotspot_ynh.git
synced 2024-09-03 19:25:53 +02:00
Add non-free for security repo, and add sudo command for sed
This commit is contained in:
parent
36f930fc2f
commit
aaf747d5ca
1 changed files with 2 additions and 2 deletions
|
@ -79,9 +79,9 @@ export DEBIAN_FRONTEND=noninteractive
|
|||
if [ "${firmware_nonfree}" == yes ]; then
|
||||
# check if non-free is set on sources.list
|
||||
if ! grep -q non-free /etc/apt/sources.list ; then
|
||||
sed -i -e '0,/main/{s/main/main non-free/}' /etc/apt/sources.list
|
||||
apt-get update
|
||||
sudo sed '/debian/{s/main/& non-free/}' -i /etc/apt/sources.list
|
||||
fi
|
||||
|
||||
packages="$packages firmware-atheros atmel-firmware firmware-linux-free firmware-linux-nonfree firmware-realtek firmware-ralink firmware-libertas zd1211-firmware"
|
||||
else
|
||||
packages="$packages firmware-linux-free"
|
||||
|
|
Loading…
Add table
Reference in a new issue