summaryrefslogtreecommitdiff
path: root/patchroot.sh
diff options
context:
space:
mode:
authorAndrew Cady <d@jerkface.net>2020-05-31 20:30:03 -0400
committerAndrew Cady <d@jerkface.net>2020-05-31 20:30:03 -0400
commitcede3f14a47999fc54fb6bcec1749e6da82bc4b0 (patch)
tree242affe9162559a925bf788c0498951d0c116e72 /patchroot.sh
parentcac7813c7dfad18b14945f7078ec135c6535a621 (diff)
move file into rootfs/
Diffstat (limited to 'patchroot.sh')
-rwxr-xr-xpatchroot.sh23
1 files changed, 0 insertions, 23 deletions
diff --git a/patchroot.sh b/patchroot.sh
deleted file mode 100755
index 76eb26a..0000000
--- a/patchroot.sh
+++ /dev/null
@@ -1,23 +0,0 @@
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