summaryrefslogtreecommitdiffstats
path: root/etc/rc.firmware
diff options
context:
space:
mode:
authorErik Fonnesbeck <efonnes@gmail.com>2010-11-14 05:36:28 -0700
committerErik Fonnesbeck <efonnes@gmail.com>2010-11-14 05:36:28 -0700
commitba8e08709a2c4bbb35e1640d7ac744da7e58b6e5 (patch)
tree6c969c46e4c88497b411e09d87da793334b98117 /etc/rc.firmware
parent0aa72c108dd7d15f9bac62bf22eef0924c717b0d (diff)
downloadpfsense-ba8e08709a2c4bbb35e1640d7ac744da7e58b6e5.zip
pfsense-ba8e08709a2c4bbb35e1640d7ac744da7e58b6e5.tar.gz
Copy /boot/loader.conf.local to the newly imaged slice. Ticket #892
Diffstat (limited to 'etc/rc.firmware')
-rwxr-xr-xetc/rc.firmware6
1 files changed, 6 insertions, 0 deletions
diff --git a/etc/rc.firmware b/etc/rc.firmware
index a7cbfaf..b10737e 100755
--- a/etc/rc.firmware
+++ b/etc/rc.firmware
@@ -287,6 +287,12 @@ pfSenseNanoBSDupgrade)
mkdir /tmp/$GLABEL_SLICE
mount /dev/ufs/$GLABEL_SLICE /tmp/$GLABEL_SLICE
+ # If /boot/loader.conf.local exists
+ # copy to the other slice.
+ if [ -f /boot/loader.conf.local ]; then
+ cp /boot/loader.conf.local /tmp/$GLABEL_SLICE/boot/loader.conf.local
+ fi
+
# If /tmp/$GLABEL_SLICE/tmp/post_upgrade_command exists
# after update then execute the command.
if [ -f /tmp/$GLABEL_SLICE/tmp/post_upgrade_command ]; then
OpenPOWER on IntegriCloud