Project

General

Profile

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

    
3
echo
4
echo "pfSense is now shutting down ..."
5
echo
6

    
7
stty status '^T'
8

    
9
# Set shell to ignore SIGINT (2), but not children;
10
trap : 2
11

    
12
HOME=/; export HOME
13
PATH=/sbin:/bin:/usr/sbin:/usr/bin
14
export PATH
15

    
16
CARPINTS=`/sbin/ifconfig | grep "carp[0-999]" | cut -d":" -f1`
17
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

    
22
# Call sshd and alert we're shutting down so it can sync
23
/etc/sshd stop
24
echo
25
echo
(49-49/60)