diff options
Diffstat (limited to 'etc/rc.reboot')
-rwxr-xr-x | etc/rc.reboot | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/etc/rc.reboot b/etc/rc.reboot index 97f29e0..7a213e7 100755 --- a/etc/rc.reboot +++ b/etc/rc.reboot @@ -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 -r now |