root/etc/rc.shutdown @ abc7a3b0
1 | 0c48d845 | Scott Ullrich | #!/bin/sh
|
---|---|---|---|
2 | 5b237745 | Scott Ullrich | |
3 | 1640b429 | Scott Ullrich | if [ -e /dev/ukbd0 ]; then |
4 | /usr/sbin/vidcontrol -s 2
|
||
5 | fi
|
||
6 |
|
||
7 | 153c8601 | Scott Ullrich | echo
|
8 | echo "pfSense is now shutting down ..." |
||
9 | echo
|
||
10 | |||
11 | 5c2c817a | Scott Ullrich | /sbin/ifconfig pfsync0 -syncdev down
|
12 | |||
13 | 0c48d845 | Scott Ullrich | stty status '^T' |
14 | 5b237745 | Scott Ullrich | |
15 | # Set shell to ignore SIGINT (2), but not children;
|
||
16 | 0c48d845 | Scott Ullrich | trap : 2
|
17 | 5b237745 | Scott Ullrich | |
18 | 0c48d845 | Scott Ullrich | HOME=/; export HOME |
19 | PATH=/sbin:/bin:/usr/sbin:/usr/bin |
||
20 | export PATH
|