summaryrefslogtreecommitdiffstats
path: root/etc/rc.firmware
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-04-28 02:34:55 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-04-28 02:34:55 +0000
commit390c8e72eb9b519462857ac308361f054187c72f (patch)
tree86a6c99af2c5a90d7cb188bf4dc87c2763d28335 /etc/rc.firmware
parent775433e7f3863681f784899f7e6607d3c551e246 (diff)
downloadpfsense-390c8e72eb9b519462857ac308361f054187c72f.zip
pfsense-390c8e72eb9b519462857ac308361f054187c72f.tar.gz
Restore flags before unmounting /cf
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