1
|
#!/bin/sh
|
2
|
|
3
|
echo
|
4
|
echo
|
5
|
echo "pfSense is now shutting down ..."
|
6
|
echo
|
7
|
|
8
|
stty status '^T'
|
9
|
|
10
|
# Set shell to ignore SIGINT (2), but not children;
|
11
|
# shell catches SIGQUIT (3) and returns to single user after fsck.
|
12
|
trap : 2
|
13
|
trap : 3 # shouldn't be needed
|
14
|
|
15
|
HOME=/; export HOME
|
16
|
PATH=/sbin:/bin:/usr/sbin:/usr/bin
|
17
|
export PATH
|
18
|
|
19
|
echo -n "Bringing interfaces down: ["
|
20
|
for ci in `/sbin/ifconfig | grep "carp[0-999]" | cut -d":" -f1`; do
|
21
|
echo -n " "
|
22
|
echo -n $ci
|
23
|
/sbin/ifconfig $ci down
|
24
|
/sbin/ifconfig $ci destroy
|
25
|
done
|
26
|
echo " ]"
|
27
|
echo
|
28
|
echo
|
29
|
|