From dcea3f4be646cd9eb42b361467f4cbf97159ef71 Mon Sep 17 00:00:00 2001 From: Piotr Dobrowolski Date: Wed, 26 May 2021 21:01:24 +0200 Subject: [PATCH] files/stage3: kill update service on startup This could make an update prompt pop up right after our reboot prompt, which I can totally see someone clicking at some point... --- files/stage3.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/files/stage3.sh b/files/stage3.sh index 2801fc1..e621ea2 100644 --- a/files/stage3.sh +++ b/files/stage3.sh @@ -3,12 +3,16 @@ # Remove this script - in case a reboot happens, we should end up with a clean # system... rm $0 +sync # Start root telnet server telnetd -l /bin/sh # give the system time to wake up -sleep 5 +sleep 3 + +mount --bind /bin/false /usr/sbin/update +pkill -9 -f /usr/sbin/update luna-send -a webosbrew -f -n 1 luna://com.webos.notification/createToast '{"sourceId":"webosbrew","message": "Installing homebrew channel..."}'