summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2009-08-06 19:46:17 -0400
committerScott Ullrich <sullrich@pfsense.org>2009-08-06 19:46:17 -0400
commit95399b720cdd1555ca9420d89d22fb009383b251 (patch)
tree4ee2fbaa7019d873b9b3248cd202636fdb3d6a91 /etc
parent99b8b3040fc4f06083993489bd71d496549ca994 (diff)
downloadpfsense-95399b720cdd1555ca9420d89d22fb009383b251.zip
pfsense-95399b720cdd1555ca9420d89d22fb009383b251.tar.gz
Reverse link arguments and rm dir
Diffstat (limited to 'etc')
-rwxr-xr-xetc/rc5
1 files changed, 3 insertions, 2 deletions
diff --git a/etc/rc b/etc/rc
index 8545408..7b9df39 100755
--- a/etc/rc
+++ b/etc/rc
@@ -96,8 +96,9 @@ elif [ "$PLATFORM" = "nanobsd" ] ; then
/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 -rf /var/db/pkg /var/tmp
+ ln -s /root/var/db/pkg/ /var/db/pkg
+ ln -s /root/var/tmp /var/tmp
else
SWAPDEVICE=`cat /etc/fstab | grep swap | cut -f1`
/sbin/swapon -a 2>/dev/null >/dev/null
OpenPOWER on IntegriCloud