summaryrefslogtreecommitdiffstats
path: root/etc/rc.firmware
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-09-22 15:40:16 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-09-22 15:40:16 +0000
commit58fb67ec1b42b97ca8078785fec9ab94952f51d3 (patch)
tree8a7eb4d106665ff445d7d648b5da63ecc08b2c94 /etc/rc.firmware
parent242c837f1933bd41b33b57ac126770e3e51f0293 (diff)
downloadpfsense-58fb67ec1b42b97ca8078785fec9ab94952f51d3.zip
pfsense-58fb67ec1b42b97ca8078785fec9ab94952f51d3.tar.gz
Do not run end of upgrade commands all the time. Only run after an upgrade.
Diffstat (limited to 'etc/rc.firmware')
-rwxr-xr-xetc/rc.firmware40
1 files changed, 25 insertions, 15 deletions
diff --git a/etc/rc.firmware b/etc/rc.firmware
index 8b98d5c..eb55e9e 100755
--- a/etc/rc.firmware
+++ b/etc/rc.firmware
@@ -178,6 +178,18 @@ pfSenseupgrade)
sleep 5
# remount /cf ro
+ rm -rf /etc/rc.conf
+ rm -rf /etc/motd
+ find / -name CVS -type d -exec rm {} \;
+ rm -rf /usr/savecore/*
+ /etc/rc.conf_mount_ro
+ /sbin/umount -f /cf 2>/dev/null
+ /sbin/mount -r /cf 2>/dev/null
+ /sbin/umount -f / 2>/dev/null
+ /sbin/mount -r / 2>/dev/null
+ if [ -e /etc/init_bootloader.sh ]; then
+ sh /etc/init_bootloader.sh
+ fi
/bin/sync
echo "Done." | logger -p daemon.info -i -t Upgrade
@@ -188,22 +200,20 @@ delta_update)
remove_chflags
binary_update $2
restore_chflags
+ rm -rf /etc/rc.conf
+ rm -rf /etc/motd
+ find / -name CVS -type d -exec rm {} \;
+ rm -rf /usr/savecore/*
+ /etc/rc.conf_mount_ro
+ /sbin/umount -f /cf 2>/dev/null
+ /sbin/mount -r /cf 2>/dev/null
+ /sbin/umount -f / 2>/dev/null
+ /sbin/mount -r / 2>/dev/null
+ if [ -e /etc/init_bootloader.sh ]; then
+ sh /etc/init_bootloader.sh
+ fi
+
;;
esac
-rm -rf /etc/rc.conf
-rm -rf /etc/motd
-find / -name CVS -type d -exec rm {} \;
-rm -rf /usr/savecore/*
-
-/etc/rc.conf_mount_ro
-/sbin/umount -f /cf 2>/dev/null
-/sbin/mount -r /cf 2>/dev/null
-/sbin/umount -f / 2>/dev/null
-/sbin/mount -r / 2>/dev/null
-
-if [ -e /etc/init_bootloader.sh ]; then
- sh /etc/init_bootloader.sh
-fi
-
OpenPOWER on IntegriCloud