summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2009-06-27 18:25:16 -0400
committerScott Ullrich <sullrich@pfsense.org>2009-06-27 18:25:16 -0400
commit7a3cc4df0e12193f28f2c0b3b272d08ba310909c (patch)
treee1f9354af1d92f63a0b1815d1280f6bb073477b0 /etc
parent04c84e491a0a888d75a6d5b9ddf8b841386a7c1b (diff)
downloadpfsense-7a3cc4df0e12193f28f2c0b3b272d08ba310909c.zip
pfsense-7a3cc4df0e12193f28f2c0b3b272d08ba310909c.tar.gz
Handle nanobsd platform
Diffstat (limited to 'etc')
-rwxr-xr-xetc/rc12
1 files changed, 12 insertions, 0 deletions
diff --git a/etc/rc b/etc/rc
index 4302302..a83336f 100755
--- a/etc/rc
+++ b/etc/rc
@@ -31,6 +31,10 @@ if [ "$PLATFORM" = "embedded" ]; then
/etc/rc.embedded
fi
+if [ "$PLATFORM" = "nanobsd" ]; then
+ /etc/rc.embedded
+fi
+
if [ "$PLATFORM" = "pfSense" ]; then
mdmfs -S -M -s 4m md /var/run
fi
@@ -85,6 +89,8 @@ if [ "$PLATFORM" = "cdrom" ] ; then
# do nothing for cdrom platform
elif [ "$PLATFORM" = "embedded" ] ; then
# do nothing for embedded platform
+elif [ "$PLATFORM" = "nanobsd" ] ; then
+ # do nothing for nanobsd platform
else
SWAPDEVICE=`cat /etc/fstab | grep swap | cut -f1`
/sbin/swapon -a 2>/dev/null >/dev/null
@@ -98,6 +104,12 @@ if [ "$PLATFORM" = "embedded" ] ; then
ln -s /cf/conf/ /conf
fi
+# Make sure symlink is correct on embedded
+if [ "$PLATFORM" = "nanobsd" ] ; then
+ rm /conf
+ ln -s /cf/conf/ /conf
+fi
+
# Repair symlinks if they are broken
if [ ! -L /etc/syslog.conf ]; then
rm -rf /etc/syslog.conf
OpenPOWER on IntegriCloud