root/etc/rc.halt @ 0fdfce06
1 |
#!/bin/sh
|
---|---|
2 |
|
3 |
# $Id$
|
4 |
|
5 |
if [ -f /var/run/config.lock ]; then |
6 |
echo "Cannot reboot at this moment, a config write operation is in progress." |
7 |
exit -1 |
8 |
fi
|
9 |
|
10 |
sleep 1
|
11 |
|
12 |
/sbin/shutdown -p now
|
13 |
|