summaryrefslogtreecommitdiffstats
path: root/src/etc/rc
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2015-09-30 12:54:32 -0300
committerRenato Botelho <renato@netgate.com>2015-09-30 12:54:39 -0300
commit22616af2b447d1d45b60b6869fb975fcfd695e2e (patch)
tree2816539f8d29e0be09bbe2f5b3a0466a5e87e217 /src/etc/rc
parent40547fe43e7f0a8349fac2c847d29002469ba715 (diff)
downloadpfsense-22616af2b447d1d45b60b6869fb975fcfd695e2e.zip
pfsense-22616af2b447d1d45b60b6869fb975fcfd695e2e.tar.gz
Create symlinks during the boot for nanobsd
Diffstat (limited to 'src/etc/rc')
-rwxr-xr-xsrc/etc/rc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/etc/rc b/src/etc/rc
index f2bb698..06f9e91 100755
--- a/src/etc/rc
+++ b/src/etc/rc
@@ -178,6 +178,10 @@ if [ "$PLATFORM" = "pfSense" ]; then
SWAPDEVICE=`/bin/cat /etc/fstab | /usr/bin/grep swap | /usr/bin/cut -f1`
/sbin/swapon -a 2>/dev/null >/dev/null
/etc/rc.savecore
+elif [ "${PLATFORM}" = "nanobsd" ]; then
+ /bin/mkdir -p /var/db /var/cache
+ ln -sf ../../root/var/db/pkg /var/db/pkg
+ ln -sf ../../root/var/cache/pkg /var/cache/pkg
fi
if [ "$PLATFORM" = "cdrom" ] ; then
OpenPOWER on IntegriCloud