summaryrefslogtreecommitdiffstats
path: root/etc/rc.firmware
diff options
context:
space:
mode:
Diffstat (limited to 'etc/rc.firmware')
-rwxr-xr-xetc/rc.firmware11
1 files changed, 6 insertions, 5 deletions
diff --git a/etc/rc.firmware b/etc/rc.firmware
index a9c8e8d..4a85bf5 100755
--- a/etc/rc.firmware
+++ b/etc/rc.firmware
@@ -105,12 +105,14 @@ upgrade)
# restore config
cp -p /tmp/configbak/* /conf
+ restore_chflags
+
# remount /cf ro
/sbin/umount -f /cf
/sbin/mount -r /cf
echo "Done - rebooting system..."
- restore_chflags
+
/etc/rc.reboot
;;
pfSenseupgrade)
@@ -129,8 +131,6 @@ pfSenseupgrade)
# mount /cf
/sbin/mount -w -o noatime /cf
- remove_chflags
-
# tar explode image onto hd
if [ -r $2 ]; then
echo "Installing $2." | logger -p daemon.info -i -t Upgrade
@@ -150,12 +150,13 @@ pfSenseupgrade)
# restore config
cp -p /tmp/configbak/* /conf
+ restore_chflags
+
# remount /cf ro
/sbin/umount -f /cf
/sbin/mount -r /cf
-
+
echo "Done - rebooting system..." | logger -p daemon.info -i -t Upgrade
- restore_chflags
/etc/rc.reboot
;;
delta_update)
OpenPOWER on IntegriCloud