diff options
author | jim-p <jimp@pfsense.org> | 2014-12-10 11:35:42 -0500 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2014-12-10 11:36:26 -0500 |
commit | 6346f188e1c48de0457c9b39b0a1807b04355969 (patch) | |
tree | 993fecc5c0342a96d8efb4ab5e672d1156fabc79 /etc/rc | |
parent | b3986dd15d8f66ffeca29f82a67dc83f3933a4f9 (diff) | |
download | pfsense-6346f188e1c48de0457c9b39b0a1807b04355969.zip pfsense-6346f188e1c48de0457c9b39b0a1807b04355969.tar.gz |
Setup ddb on all platforms. On full install it will save the dump, on NanoBSD it will print to console and auto-reboot.
This way, a router running NanoBSD won't sit at a db> prompt indefinitely if it crashes.
Diffstat (limited to 'etc/rc')
-rwxr-xr-x | etc/rc | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -31,6 +31,11 @@ if [ "$PLATFORM" = "pfSense" ]; then /etc/rc.dumpon fi +# Setup ddb on all platforms. On full install it will save the dump, on NanoBSD it will print to console and auto-reboot. +if [ ! -z "`sysctl -Nq debug.ddb.scripting.scripts`" ]; then + /sbin/ddb /etc/ddb.conf +fi + if [ -e /root/force_fsck ]; then echo "Forcing filesystem check..." /sbin/fsck -y -t ufs / |