| 1 | #!/bin/bash |
| 2 | # example file to be used with --hookdir |
| 3 | # |
| 4 | # add non-free and contrib distributions to |
| 5 | # /etc/apt/sources.list |
| 6 | |
| 7 | echo 'Add sid non-free mirror to distribution' |
| 8 | echo 'deb '$(awk '/^deb / {print $2} ' < /etc/apt/sources.list | head -1 )' sid contrib non-free' >> /etc/apt/sources.list |
| 9 | apt-get update |