diff options
author | Andrew Cady <d@jerkface.net> | 2020-05-31 20:30:03 -0400 |
---|---|---|
committer | Andrew Cady <d@jerkface.net> | 2020-05-31 20:30:03 -0400 |
commit | cede3f14a47999fc54fb6bcec1749e6da82bc4b0 (patch) | |
tree | 242affe9162559a925bf788c0498951d0c116e72 /patchroot.sh | |
parent | cac7813c7dfad18b14945f7078ec135c6535a621 (diff) |
move file into rootfs/
Diffstat (limited to 'patchroot.sh')
-rwxr-xr-x | patchroot.sh | 23 |
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 | ||
2 | hostname=adam | ||
3 | echo $hostname > /etc/hostname | ||
4 | sed -i -e 's/\blocalhost\b/& '"$hostname"'/' /etc/hosts | ||
5 | |||
6 | . /etc/os-release | ||
7 | |||
8 | # TODO: Write this in fsmgr | ||
9 | cat <<END > /etc/apt/sources.list | ||
10 | deb http://httpredir.debian.org/debian ${VERSION_CODENAME} main #contrib non-free | ||
11 | deb 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 | ||
13 | END | ||
14 | |||
15 | set -- /var/lib/apt/lists/*_Packages | ||
16 | if [ -f "$1" ] | ||
17 | then | ||
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 | ||
23 | fi | ||