summaryrefslogtreecommitdiff
path: root/rootfs/patchroot.sh
diff options
context:
space:
mode:
Diffstat (limited to 'rootfs/patchroot.sh')
-rwxr-xr-xrootfs/patchroot.sh23
1 files changed, 23 insertions, 0 deletions
diff --git a/rootfs/patchroot.sh b/rootfs/patchroot.sh
new file mode 100755
index 0000000..76eb26a
--- /dev/null
+++ b/rootfs/patchroot.sh
@@ -0,0 +1,23 @@
1#!/bin/sh
2hostname=adam
3echo $hostname > /etc/hostname
4sed -i -e 's/\blocalhost\b/& '"$hostname"'/' /etc/hosts
5
6. /etc/os-release
7
8# TODO: Write this in fsmgr
9cat <<END > /etc/apt/sources.list
10deb http://httpredir.debian.org/debian ${VERSION_CODENAME} main #contrib non-free
11deb http://security.debian.org ${VERSION_CODENAME}/updates main #contrib non-free
12#deb http://httpredir.debian.org/debian ${VERSION_CODENAME}-backports main #contrib non-free
13END
14
15set -- /var/lib/apt/lists/*_Packages
16if [ -f "$1" ]
17then
18 # apt database validity demonstration
19 apt-get update
20 apt-cache dumpavail | dpkg --update-avail -
21 apt-get -yd install iso-codes # baresip
22 apt-mark install baresip
23fi