This repository has been archived on 2023-02-21. You can view files and clone it, but cannot push or open issues or pull requests.
|
#!/bin/sh
|
|
|
|
# $Id$
|
|
|
|
if ! /usr/bin/lockf -s -t 30 /tmp/config.lock /usr/bin/true; then
|
|
echo "Cannot halt at this moment, a config write operation is in progress and 30 seconds have passed."
|
|
exit -1
|
|
fi
|
|
|
|
sleep 1
|
|
|
|
/sbin/shutdown -p now
|
|
|