summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2007-05-09 05:35:07 +0000
committerScott Ullrich <sullrich@pfsense.org>2007-05-09 05:35:07 +0000
commit69c4d460a7ae9de9a151c5c66f1bc366f582f2ae (patch)
tree86e9d17068a962e62c56c175e2b1ccb22123dac1 /etc
parent1d2cc9065aeafa3b0ff08c13b386fda616d54b3e (diff)
downloadpfsense-69c4d460a7ae9de9a151c5c66f1bc366f582f2ae.zip
pfsense-69c4d460a7ae9de9a151c5c66f1bc366f582f2ae.tar.gz
Unlink upgrade file on upgrade.
Diffstat (limited to 'etc')
-rwxr-xr-xetc/rc.firmware3
-rwxr-xr-xetc/rc.initial.firmware_update1
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
OpenPOWER on IntegriCloud