diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2009-08-06 18:30:25 -0400 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2009-08-06 18:30:25 -0400 |
commit | 99b8b3040fc4f06083993489bd71d496549ca994 (patch) | |
tree | ef8fe79729c1e62e2f6121b8d79612d35c40d09b | |
parent | 8bb895eb4ae93dcd4f28343fe2e22725e7182a18 (diff) | |
download | pfsense-99b8b3040fc4f06083993489bd71d496549ca994.zip pfsense-99b8b3040fc4f06083993489bd71d496549ca994.tar.gz |
Create symlink after disks are mounted
-rwxr-xr-x | etc/rc | 14 |
1 files changed, 6 insertions, 8 deletions
@@ -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 |