From ad100f42af06b3c53c08d1211fa2afd065c0d423 Mon Sep 17 00:00:00 2001 From: Junichi Uekawa Date: Mon, 12 Jan 2009 17:06:47 +0900 Subject: 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. --- examples/D20addnonfree | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 examples/D20addnonfree (limited to '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 -- cgit v1.2.3