diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-09-22 15:40:16 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-09-22 15:40:16 +0000 |
commit | 58fb67ec1b42b97ca8078785fec9ab94952f51d3 (patch) | |
tree | 8a7eb4d106665ff445d7d648b5da63ecc08b2c94 /etc/rc.firmware | |
parent | 242c837f1933bd41b33b57ac126770e3e51f0293 (diff) | |
download | pfsense-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-x | etc/rc.firmware | 40 |
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 - |