univnautes / etc / rc.halt @ 36de334e
1 |
#!/bin/sh
|
---|---|
2 |
|
3 |
# $Id$
|
4 |
|
5 |
if ! /usr/bin/lockf -s -t 30 /tmp/config.lock /usr/bin/true; then |
6 |
echo "Cannot halt at this moment, a config write operation is in progress and 30 seconds have passed." |
7 |
exit -1 |
8 |
fi
|
9 |
|
10 |
sleep 1
|
11 |
|
12 |
/sbin/shutdown -p now
|
13 |
|