root/src/etc/rc.halt @ b7331383
1 | 405e5de0 | Scott Ullrich | #!/bin/sh
|
---|---|---|---|
2 | |||
3 | 95393d43 | Phil Davis | # /etc/rc.halt
|
4 | 1b8df11b | Bill Marquette | |
5 | 7201ca27 | jim-p | 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 | 57b66617 | Scott Ullrich | exit -1 |
8 | fi
|
||
9 | |||
10 | 405e5de0 | Scott Ullrich | sleep 1
|
11 | |||
12 | da3c3c86 | Scott Ullrich | /sbin/shutdown -p now
|