summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Devaev <[email protected]>2021-11-20 05:29:14 +0300
committerMaxim Devaev <[email protected]>2021-11-20 05:29:14 +0300
commit227423e2496609cc51d7f2b3aa096703b469719c (patch)
treea3794dd09d29bde1eb40661b0da990afe745d083
parent308e5c1779d569df3a2709085ec111fe9c82b844 (diff)
fixed bootconfig ro
-rwxr-xr-xscripts/kvmd-bootconfig4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/kvmd-bootconfig b/scripts/kvmd-bootconfig
index 8a400405..af47e72b 100755
--- a/scripts/kvmd-bootconfig
+++ b/scripts/kvmd-bootconfig
@@ -146,12 +146,14 @@ fi
# ========== Finish ==========
rm -f /boot/pikvm.txt
-ro
if [ -f /boot/pikvm-reboot.txt ]; then
rm -f /boot/pikvm-reboot.txt
+ ro
echo "kvmd-bootconfig: Reboot after 5 seconds" | tee /dev/kmsg
sleep 2
reboot
sleep 3
+else
+ ro
fi