diff options
author | Erik Fonnesbeck <efonnes@gmail.com> | 2010-11-14 05:36:28 -0700 |
---|---|---|
committer | Erik Fonnesbeck <efonnes@gmail.com> | 2010-11-14 05:36:28 -0700 |
commit | ba8e08709a2c4bbb35e1640d7ac744da7e58b6e5 (patch) | |
tree | 6c969c46e4c88497b411e09d87da793334b98117 /etc/rc.firmware | |
parent | 0aa72c108dd7d15f9bac62bf22eef0924c717b0d (diff) | |
download | pfsense-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-x | etc/rc.firmware | 6 |
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 |