diff options
Diffstat (limited to 'etc/rc.halt')
-rwxr-xr-x | etc/rc.halt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/etc/rc.halt b/etc/rc.halt index 1ed6ffe..4f3d1ef 100755 --- a/etc/rc.halt +++ b/etc/rc.halt @@ -2,6 +2,11 @@ # $Id$ +if [ -f /var/run/config.lock ]; then + echo "Cannot reboot at this moment, a config write operation is in progress." + exit -1 +fi + sleep 1 /sbin/shutdown -p now |