aboutsummaryrefslogtreecommitdiff
path: root/examples/D20addnonfree
blob: 5e8e85fbf6c3e1e6badfb0e48ecd1918a370e0d6 (plain)
1
2
3
4
5
6
7
8
9
#!/bin/bash
# example file to be used with --hookdir
#
# add non-free and contrib distributions to 
# /etc/apt/sources.list 

echo ' Add sid non-free mirror to distribution'
echo 'deb '$(awk '/^deb / {print $2} ' < /etc/apt/sources.list | head -1 )' sid contrib non-free' >> /etc/apt/sources.list
apt-get update