summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2009-08-06 18:30:25 -0400
committerScott Ullrich <sullrich@pfsense.org>2009-08-06 18:30:25 -0400
commit99b8b3040fc4f06083993489bd71d496549ca994 (patch)
treeef8fe79729c1e62e2f6121b8d79612d35c40d09b /etc
parent8bb895eb4ae93dcd4f28343fe2e22725e7182a18 (diff)
downloadpfsense-99b8b3040fc4f06083993489bd71d496549ca994.zip
pfsense-99b8b3040fc4f06083993489bd71d496549ca994.tar.gz
Create symlink after disks are mounted
Diffstat (limited to 'etc')
-rwxr-xr-xetc/rc14
1 files changed, 6 insertions, 8 deletions
diff --git a/etc/rc b/etc/rc
index 5196388..8545408 100755
--- a/etc/rc
+++ b/etc/rc
@@ -92,7 +92,12 @@ if [ "$PLATFORM" = "cdrom" ] ; then
elif [ "$PLATFORM" = "embedded" ] ; then
# do nothing for embedded platform
elif [ "$PLATFORM" = "nanobsd" ] ; then
- # do nothing for nanobsd platform
+ /bin/mkdir -p /root/var/db/pkg
+ /bin/mkdir -p /root/var/tmp
+
+ # Ensure that packages can be persistent across reboots
+ ln -s /var/db/pkg /root/var/db/pkg
+ ln -s /var/tmp /root/var/tmp
else
SWAPDEVICE=`cat /etc/fstab | grep swap | cut -f1`
/sbin/swapon -a 2>/dev/null >/dev/null
@@ -126,13 +131,6 @@ fi
echo -n "Creating symlinks..."
# Make sure symlink is correct on embedded
if [ "$PLATFORM" = "embedded" ] ; then
- /bin/mkdir -p /root/var/db/pkg
- /bin/mkdir -p /root/var/tmp
-
- # Ensure that packages can be persistent across reboots
- ln -s /var/db/pkg /root/var/db/pkg
- ln -s /var/tmp /root/var/tmp
-
rm /conf
ln -s /cf/conf/ /conf
fi
OpenPOWER on IntegriCloud