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`
# Setup dumpdev/ddb/savecore"
echo "Configuring crash dumps..."
if [ "$PLATFORM" = "pfSense" ]; then
/etc/rc.dumpon
/usr/local/etc/rc.dumpon
fi
if [ -e /root/force_fsck ]; then
......@@ -183,8 +183,8 @@ elif [ "$PLATFORM" = "jail" ]; then
# do nothing for jail platform
else
SWAPDEVICE=`/bin/cat /etc/fstab | /usr/bin/grep swap | /usr/bin/cut -f1`
/sbin/swapon -a 2>/dev/null >/dev/null
/etc/rc.savecore
/sbin/swapon -a
/usr/local/etc/rc.savecore
if [ -d /root/var/db/pkg ]; then
# User must have just disabled RAM disks, move these back into place.
......
#!/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()
{
......@@ -24,6 +20,7 @@ while read dev mp type more ; do
[ -c "${dev}" ] || continue
dumpon_try "${dev}" && works=true
done </etc/fstab
if [ "${works}" != "true" ]; then
echo "No suitable dump device was found." 1>&2
exit
......@@ -31,5 +28,5 @@ fi
# ddb
if [ ! -z "`sysctl -Nq debug.ddb.scripting.scripts`" ]; then
/sbin/ddb /etc/ddb.conf
/sbin/ddb /usr/local/etc/ddb.conf
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