summaryrefslogtreecommitdiff
path: root/config/chroot_local-hooks/sources.list-format
diff options
context:
space:
mode:
Diffstat (limited to 'config/chroot_local-hooks/sources.list-format')
-rw-r--r--config/chroot_local-hooks/sources.list-format19
1 files changed, 19 insertions, 0 deletions
diff --git a/config/chroot_local-hooks/sources.list-format b/config/chroot_local-hooks/sources.list-format
new file mode 100644
index 0000000..7fcf14e
--- /dev/null
+++ b/config/chroot_local-hooks/sources.list-format
@@ -0,0 +1,19 @@
+#!/bin/bash
+# update sources.list
+
+if [ -d /etc/apt/sources.list.d ]; then
+ for repo in /etc/apt/sources.list.d/*
+ do
+ case "$(basename "$repo" .list)" in
+ live.debian.net)
+ # ignore and remove these repos
+ ;;
+ *)
+ cat "$repo" >> /etc/apt/sources.list
+ echo >> /etc/apt/sources.list
+ ;;
+ esac
+ rm "$repo"
+ done
+fi
+