aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rwxr-xr-xexamples/D20addnonfree9
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