Commit d44f8e34 authored by Franco Fichtner's avatar Franco Fichtner

etc: moar of the same

parent df74ed1e
# $FreeBSD: src/etc/fbtab,v 1.3 1999/09/13 17:09:07 peter Exp $
#
#/dev/ttyv0 0600 /dev/console
#/dev/ttyv0 0600 /dev/pcaudio:/dev/pcaudioctl
...@@ -25,7 +25,7 @@ version=`/bin/cat /usr/local/etc/version` ...@@ -25,7 +25,7 @@ version=`/bin/cat /usr/local/etc/version`
# Setup dumpdev/ddb/savecore" # Setup dumpdev/ddb/savecore"
echo "Configuring crash dumps..." echo "Configuring crash dumps..."
if [ "$PLATFORM" = "pfSense" ]; then if [ "$PLATFORM" = "pfSense" ]; then
/etc/rc.dumpon /usr/local/etc/rc.dumpon
fi fi
if [ -e /root/force_fsck ]; then if [ -e /root/force_fsck ]; then
...@@ -183,8 +183,8 @@ elif [ "$PLATFORM" = "jail" ]; then ...@@ -183,8 +183,8 @@ elif [ "$PLATFORM" = "jail" ]; then
# do nothing for jail platform # do nothing for jail platform
else else
SWAPDEVICE=`/bin/cat /etc/fstab | /usr/bin/grep swap | /usr/bin/cut -f1` SWAPDEVICE=`/bin/cat /etc/fstab | /usr/bin/grep swap | /usr/bin/cut -f1`
/sbin/swapon -a 2>/dev/null >/dev/null /sbin/swapon -a
/etc/rc.savecore /usr/local/etc/rc.savecore
if [ -d /root/var/db/pkg ]; then if [ -d /root/var/db/pkg ]; then
# User must have just disabled RAM disks, move these back into place. # User must have just disabled RAM disks, move these back into place.
......
#!/bin/sh #!/bin/sh
# Based on:
# FreeBSD: src/etc/rc.d/dumpon,v 1.12.2.1.4.1 2010/06/14 02:09:06 kensmith Exp
# dumpon
dumpon_try() dumpon_try()
{ {
...@@ -24,6 +20,7 @@ while read dev mp type more ; do ...@@ -24,6 +20,7 @@ while read dev mp type more ; do
[ -c "${dev}" ] || continue [ -c "${dev}" ] || continue
dumpon_try "${dev}" && works=true dumpon_try "${dev}" && works=true
done </etc/fstab done </etc/fstab
if [ "${works}" != "true" ]; then if [ "${works}" != "true" ]; then
echo "No suitable dump device was found." 1>&2 echo "No suitable dump device was found." 1>&2
exit exit
...@@ -31,5 +28,5 @@ fi ...@@ -31,5 +28,5 @@ fi
# ddb # ddb
if [ ! -z "`sysctl -Nq debug.ddb.scripting.scripts`" ]; then if [ ! -z "`sysctl -Nq debug.ddb.scripting.scripts`" ]; then
/sbin/ddb /etc/ddb.conf /sbin/ddb /usr/local/etc/ddb.conf
fi fi
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment