summaryrefslogtreecommitdiffstats
path: root/etc/rc
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2014-12-10 11:35:42 -0500
committerjim-p <jimp@pfsense.org>2014-12-10 11:36:26 -0500
commit6346f188e1c48de0457c9b39b0a1807b04355969 (patch)
tree993fecc5c0342a96d8efb4ab5e672d1156fabc79 /etc/rc
parentb3986dd15d8f66ffeca29f82a67dc83f3933a4f9 (diff)
downloadpfsense-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-xetc/rc5
1 files changed, 5 insertions, 0 deletions
diff --git a/etc/rc b/etc/rc
index 60dcb34..601f3f3 100755
--- a/etc/rc
+++ b/etc/rc
@@ -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 /
OpenPOWER on IntegriCloud