summaryrefslogtreecommitdiff
path: root/rootfs/samizdat-update-apt-cache.sh
diff options
context:
space:
mode:
Diffstat (limited to 'rootfs/samizdat-update-apt-cache.sh')
-rwxr-xr-xrootfs/samizdat-update-apt-cache.sh19
1 files changed, 19 insertions, 0 deletions
diff --git a/rootfs/samizdat-update-apt-cache.sh b/rootfs/samizdat-update-apt-cache.sh
new file mode 100755
index 0000000..83751a3
--- /dev/null
+++ b/rootfs/samizdat-update-apt-cache.sh
@@ -0,0 +1,19 @@
1#!/bin/sh
2# TODO: Write this in fsmgr
3
4. /etc/os-release
5
6cat <<END > /etc/apt/sources.list
7deb http://httpredir.debian.org/debian ${VERSION_CODENAME} main #contrib non-free
8deb http://security.debian.org ${VERSION_CODENAME}/updates main #contrib non-free
9#deb http://httpredir.debian.org/debian ${VERSION_CODENAME}-backports main #contrib non-free
10END
11
12set -- /var/lib/apt/lists/*_Packages
13if [ -f "$1" ]
14then
15 apt-get update || exit
16 apt-cache dumpavail | dpkg --update-avail -
17else
18 false
19fi