Create symlink after disks are mounted

This commit is contained in:
Scott Ullrich 2009-08-06 18:28:58 -04:00
parent 1ec2431763
commit 8bb895eb4a
2 changed files with 7 additions and 6 deletions

7
etc/rc
View File

@ -126,6 +126,13 @@ 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

View File

@ -28,12 +28,6 @@ fi
# Create some needed directories
/bin/mkdir -p /var/db
/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
# Ensure vi's recover directory is present
/bin/mkdir -p /var/tmp/vi.recover/