summaryrefslogtreecommitdiffstats
path: root/etc/rc
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@world.inf.org>2012-04-18 12:14:27 +0545
committerPhil Davis <phil.davis@world.inf.org>2012-04-18 12:14:27 +0545
commit152c18f0022798660806462869648da185d6f058 (patch)
treee916b2981f614fe73605192f16d69726b9705f77 /etc/rc
parent2f0a49e922e282a1abc641ec9d489f2678e069be (diff)
downloadpfsense-152c18f0022798660806462869648da185d6f058.zip
pfsense-152c18f0022798660806462869648da185d6f058.tar.gz
Store PBIs in /root/var/db/pbi so they persist across reboots.
Keep the existing code for old-style PKG packages in case users on 2.1 are doing anything with PKG packages by hand. In theory all proper package installs on pfSense 2.1 (FreeBSD 8.3) should use PBIs.
Diffstat (limited to 'etc/rc')
-rwxr-xr-xetc/rc6
1 files changed, 5 insertions, 1 deletions
diff --git a/etc/rc b/etc/rc
index 6ff3d27..b2d2544 100755
--- a/etc/rc
+++ b/etc/rc
@@ -126,10 +126,14 @@ if [ "$PLATFORM" = "cdrom" ] ; then
elif [ "$PLATFORM" = "embedded" ] ; then
# do nothing for embedded platform
elif [ "$PLATFORM" = "nanobsd" ] ; then
- # Ensure that packages can be persistent across reboots
+ # Ensure that old-style PKG packages can be persistent across reboots
/bin/mkdir -p /root/var/db/pkg
/bin/rm -rf /var/db/pkg
/bin/ln -s /root/var/db/pkg/ /var/db/pkg
+ # Ensure that PBI packages can be persistent across reboots
+ /bin/mkdir -p /root/var/db/pbi
+ /bin/rm -rf /var/db/pbi
+ /bin/ln -s /root/var/db/pbi/ /var/db/pbi
elif [ "$PLATFORM" = "jail" ]; then
# do nothing for jail platform
else
OpenPOWER on IntegriCloud