summaryrefslogtreecommitdiffstats
path: root/etc/rc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2009-06-27 18:26:25 -0400
committerScott Ullrich <sullrich@pfsense.org>2009-06-27 18:26:25 -0400
commit803c0401a589ea8090a054eedb304474579420b8 (patch)
treeca0d12fa569d06cac537e2f873348de68c62ac18 /etc/rc
parent5c3ccc0dcf123ed41dcffc3df5405b2f0ba8d355 (diff)
downloadpfsense-803c0401a589ea8090a054eedb304474579420b8.zip
pfsense-803c0401a589ea8090a054eedb304474579420b8.tar.gz
Add support for nanobsd platform
Diffstat (limited to 'etc/rc')
-rwxr-xr-xetc/rc12
1 files changed, 12 insertions, 0 deletions
diff --git a/etc/rc b/etc/rc
index cbe13cf..df7c738 100755
--- a/etc/rc
+++ b/etc/rc
@@ -33,6 +33,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
@@ -87,6 +91,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
@@ -124,6 +130,12 @@ if [ "$PLATFORM" = "embedded" ] ; then
ln -s /cf/conf/ /conf
fi
+# Make sure symlink is correct on nanobsd
+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