diff options
Diffstat (limited to 'etc/rc.shutdown')
-rwxr-xr-x | etc/rc.shutdown | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/etc/rc.shutdown b/etc/rc.shutdown index a2f3d11..3585e74 100755 --- a/etc/rc.shutdown +++ b/etc/rc.shutdown @@ -1,5 +1,10 @@ #!/bin/sh +if [ -f /var/run/config.lock ]; then + echo "Cannot reboot at this moment, a config write operation is in progress." + exit -1 +fi + if [ -e /dev/ukbd0 ]; then /usr/sbin/vidcontrol -s 2 fi |