Project

General

Profile

Download (241 Bytes) Statistics
| Branch: | Tag: | Revision:
1
#!/bin/sh
2

    
3
# /etc/rc.halt
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
(39-39/83)