Project

General

Profile

Download (487 Bytes) Statistics
| Branch: | Tag: | Revision:
1 0c48d845 Scott Ullrich
#!/bin/sh
2 5b237745 Scott Ullrich
3 153c8601 Scott Ullrich
echo
4
echo "pfSense is now shutting down ..."
5
echo
6
7 0c48d845 Scott Ullrich
stty status '^T'
8 5b237745 Scott Ullrich
9
# Set shell to ignore SIGINT (2), but not children;
10 0c48d845 Scott Ullrich
trap : 2
11 5b237745 Scott Ullrich
12 0c48d845 Scott Ullrich
HOME=/; export HOME
13
PATH=/sbin:/bin:/usr/sbin:/usr/bin
14
export PATH
15 5b237745 Scott Ullrich
16 3b18f175 Scott Ullrich
CARPINTS=`/sbin/ifconfig | grep "carp[0-999]" | cut -d":" -f1`
17 2c960203 Scott Ullrich
for ci in `/sbin/ifconfig | grep "carp[0-999]" | cut -d":" -f1`; do
18
    /sbin/ifconfig $ci down
19
    /sbin/ifconfig $ci destroy
20
done
21 5b237745 Scott Ullrich
22 3b18f175 Scott Ullrich
# Call sshd and alert we're shutting down so it can sync
23
/etc/sshd stop
24
echo
25
echo