diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2009-06-27 18:26:25 -0400 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2009-06-27 18:26:25 -0400 |
commit | 803c0401a589ea8090a054eedb304474579420b8 (patch) | |
tree | ca0d12fa569d06cac537e2f873348de68c62ac18 /etc/rc | |
parent | 5c3ccc0dcf123ed41dcffc3df5405b2f0ba8d355 (diff) | |
download | pfsense-803c0401a589ea8090a054eedb304474579420b8.zip pfsense-803c0401a589ea8090a054eedb304474579420b8.tar.gz |
Add support for nanobsd platform
Diffstat (limited to 'etc/rc')
-rwxr-xr-x | etc/rc | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -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 |