mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Create symlink after disks are mounted
This commit is contained in:
parent
1ec2431763
commit
8bb895eb4a
7
etc/rc
7
etc/rc
@ -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
|
||||
|
||||
@ -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/
|
||||
|
||||
Loading…
Reference in New Issue
Block a user