From b69d42fb27472f39b5a01104827b4072dd7cfbc6 Mon Sep 17 00:00:00 2001 From: James Le Cuirot Date: Wed, 22 Feb 2017 13:46:28 +0000 Subject: [PATCH] Bind mount just the init file This is cleaner and saves you from having to copy telinit beforehand. --- takeover.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/takeover.sh b/takeover.sh index 7c04fb2..fa887d4 100755 --- a/takeover.sh +++ b/takeover.sh @@ -2,7 +2,6 @@ set -e TO=/takeover -OLD_TELINIT=/sbin/telinit PORT=80 cd "$TO" @@ -47,7 +46,6 @@ if [ "$a" != "OK" ] ; then fi ./busybox echo "Preparing init..." -./busybox cp $OLD_TELINIT tmp/telinit ./busybox cat >tmp/init <