aboutsummaryrefslogtreecommitdiff
path: root/scripts/runit.sh
diff options
context:
space:
mode:
authorMitch Riedstra <mitch@riedstra.us>2018-04-16 00:51:48 -0400
committerMitch Riedstra <mitch@riedstra.us>2018-04-16 00:51:48 -0400
commit25a1cb19b213f7825fcc080a29991beeb70f6b93 (patch)
tree260a4854d907c72f20cd5e206b0aad3fd0f85e7c /scripts/runit.sh
parent104f042ddbef56e323b61353fceeb5fd3dae5556 (diff)
downloadmin-25a1cb19b213f7825fcc080a29991beeb70f6b93.tar.gz
min-25a1cb19b213f7825fcc080a29991beeb70f6b93.tar.xz
It works!
A getty now spawns on the serial console on boot Todo: DNS resolution doesn't work yet. DHCP for eth0? SSH server? `tmux`? ------- Added busybox config Switched the pathing around yet again in the `inc` file Added `local` files to be copied into the prefix before creating the tarball ( TODO ) Added tree command to the build Install runit
Diffstat (limited to 'scripts/runit.sh')
-rw-r--r--scripts/runit.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/runit.sh b/scripts/runit.sh
index 39bcbaa..2552250 100644
--- a/scripts/runit.sh
+++ b/scripts/runit.sh
@@ -11,8 +11,15 @@ if ! [ -d "$BUILD_DIR" ] ; then
fi
cd "$BUILD_DIR/src"
export CC=musl-gcc
+# busybox will handle this for us
export LDFLAGS="-static"
export DESTDIR="$prefix"
echo "musl-gcc -O2 -Wall $CFLAGS" > conf-cc
echo "musl-gcc -s $LDFLAGS" > conf-ld
make
+echo "Done Building"
+for ex in runit-init runit runsvdir runsv sv svlogd utmpset ; do
+ _dest="$prefix/sbin/$ex"
+ if [ -e "$_dest" ] ; then rm -f "$dest" ; fi
+ install -m 555 "$ex" "$_dest"
+done