From 4d602a919c669cc1ab866b0db0492147fd8a5d70 Mon Sep 17 00:00:00 2001 From: Hector Martin Date: Sat, 11 Feb 2017 04:59:06 +0900 Subject: [PATCH] Bail out if fakeinit is missing --- takeover.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/takeover.sh b/takeover.sh index 167a91a..2c8ea32 100755 --- a/takeover.sh +++ b/takeover.sh @@ -9,6 +9,7 @@ cd "$TO" if [ ! -e fakeinit ]; then ./busybox echo "Please compile fakeinit.c first" + exit 1 fi ./busybox echo "Please set a root password for sshd"