summaryrefslogtreecommitdiffstats
path: root/misc/maintenance
diff options
context:
space:
mode:
Diffstat (limited to 'misc/maintenance')
-rwxr-xr-xmisc/maintenance7
1 files changed, 7 insertions, 0 deletions
diff --git a/misc/maintenance b/misc/maintenance
new file mode 100755
index 000000000..5df728d5e
--- /dev/null
+++ b/misc/maintenance
@@ -0,0 +1,7 @@
+#!/bin/sh
+echo "$PS1" > /tmp/ps1.old
+echo "Entering System Maintenance Mode ..."
+mount -o remount,rw / && PS1="SYSTEM MAINTENANCE #>" ash
+echo -n "Leaving System Maintenance Mode ..."
+mount -o remount,ro / && echo "DONE"
+