diff options
-rw-r--r-- | Makefile | 1 | ||||
-rwxr-xr-x | examples/D20addnonfree | 9 |
2 files changed, 10 insertions, 0 deletions
@@ -105,6 +105,7 @@ install: $(INSTALL_EXECUTABLE) examples/C10shell $(DESTDIR)/usr/share/doc/pbuilder/examples $(INSTALL_EXECUTABLE) examples/C11screen $(DESTDIR)/usr/share/doc/pbuilder/examples $(INSTALL_EXECUTABLE) examples/D10tmp $(DESTDIR)/usr/share/doc/pbuilder/examples + $(INSTALL_EXECUTABLE) examples/D20addnonfree $(DESTDIR)/usr/share/doc/pbuilder/examples $(INSTALL_EXECUTABLE) examples/D90chrootmemo $(DESTDIR)/usr/share/doc/pbuilder/examples $(INSTALL_EXECUTABLE) examples/F90chrootmemo $(DESTDIR)/usr/share/doc/pbuilder/examples $(INSTALL_EXECUTABLE) examples/B90list-missing $(DESTDIR)/usr/share/doc/pbuilder/examples diff --git a/examples/D20addnonfree b/examples/D20addnonfree new file mode 100755 index 0000000..5e8e85f --- /dev/null +++ b/examples/D20addnonfree @@ -0,0 +1,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 |