summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJim P <jim@pingle.org>2012-04-18 05:31:17 -0700
committerJim P <jim@pingle.org>2012-04-18 05:31:17 -0700
commitef82d62b8f90080c282feb92c5785d9de2be26c1 (patch)
tree35cf3756f93040c08c1b128705dc5887c3e3979c
parentc0b1bc81465e2e9636ae7b8af1e53089f5d2e1d0 (diff)
parent152c18f0022798660806462869648da185d6f058 (diff)
downloadpfsense-ef82d62b8f90080c282feb92c5785d9de2be26c1.zip
pfsense-ef82d62b8f90080c282feb92c5785d9de2be26c1.tar.gz
Merge pull request #93 from phil-davis/patch-1
Store PBIs in /root/var/db/pbi so they persist across reboots.
-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