diff options
author | Junichi Uekawa <dancer@netfort.gr.jp> | 2009-01-12 17:06:47 +0900 |
---|---|---|
committer | Junichi Uekawa <dancer@netfort.gr.jp> | 2009-01-12 17:06:47 +0900 |
commit | ad100f42af06b3c53c08d1211fa2afd065c0d423 (patch) | |
tree | b2ea82e04e85f21f1226a8b2c29154d7444d607f /examples | |
parent | 7206b83f9c3f80f34f42f81c825ff35162002e68 (diff) | |
download | pbuilder-ad100f42af06b3c53c08d1211fa2afd065c0d423.tar pbuilder-ad100f42af06b3c53c08d1211fa2afd065c0d423.tar.gz |
A Hook to add Non-free distribution to sources.list.
This is useful when you have to use non-free and don't really want to
rebuild the tarball.
Diffstat (limited to 'examples')
-rwxr-xr-x | examples/D20addnonfree | 9 |
1 files changed, 9 insertions, 0 deletions
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 |