summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2021-05-27 08:17:56 +0200
committerErich Eckner <git@eckner.net>2021-05-27 08:17:56 +0200
commit15c13f2448249d06b32901ef2ce04aee8e660898 (patch)
treeca34b3d70f2211834f5af6dbc705cdb3defea4be
parent0616bd6645db131b30633abe317161323340a756 (diff)
downloadupdate-all-15c13f2448249d06b32901ef2ce04aee8e660898.tar.xz
update-me.in: use shutdownasap -R instead of -r to not overwrite a scheduled shutdown
-rw-r--r--update-me.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/update-me.in b/update-me.in
index f20f837..ed95002 100644
--- a/update-me.in
+++ b/update-me.in
@@ -53,9 +53,9 @@ for mp in '/' '/boot'; do
preCmds+=('mount -o remount,rw '"${mp}")
if command -v shutdownasap >/dev/null; then
if command -v screen >/dev/null; then
- postCmds+=('mount -o remount,ro '"${mp}"' || screen -d -m shutdownasap -r')
+ postCmds+=('mount -o remount,ro '"${mp}"' || screen -d -m shutdownasap -R')
else
- postCmds+=('mount -o remount,ro '"${mp}"' || shutdownasap -r')
+ postCmds+=('mount -o remount,ro '"${mp}"' || shutdownasap -R')
fi
else
postCmds+=('bash -c "mount -o remount,ro '"${mp}"' || reboot"')