diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2007-05-09 05:35:07 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2007-05-09 05:35:07 +0000 |
commit | 69c4d460a7ae9de9a151c5c66f1bc366f582f2ae (patch) | |
tree | 86e9d17068a962e62c56c175e2b1ccb22123dac1 /etc | |
parent | 1d2cc9065aeafa3b0ff08c13b386fda616d54b3e (diff) | |
download | pfsense-69c4d460a7ae9de9a151c5c66f1bc366f582f2ae.zip pfsense-69c4d460a7ae9de9a151c5c66f1bc366f582f2ae.tar.gz |
Unlink upgrade file on upgrade.
Diffstat (limited to 'etc')
-rwxr-xr-x | etc/rc.firmware | 3 | ||||
-rwxr-xr-x | etc/rc.initial.firmware_update | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/etc/rc.firmware b/etc/rc.firmware index 50368f7..a6e0082 100755 --- a/etc/rc.firmware +++ b/etc/rc.firmware @@ -200,6 +200,9 @@ pfSenseupgrade) restore_chflags + # Remove upgrade file + rm -f $IMG + rm -f /var/run/firmware.lock /bin/sync diff --git a/etc/rc.initial.firmware_update b/etc/rc.initial.firmware_update index c37eb83..7d6fc02 100755 --- a/etc/rc.initial.firmware_update +++ b/etc/rc.initial.firmware_update @@ -96,6 +96,7 @@ switch ($command) { function do_upgrade($path) { echo "\nOne moment please... Invoking firmware upgrade...\n"; exec("/etc/rc.firmware pfSenseupgrade $path"); + unlink($path); } ?>
\ No newline at end of file |