summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2007-05-14 22:18:07 +0000
committerScott Ullrich <sullrich@pfsense.org>2007-05-14 22:18:07 +0000
commitef0090a392d2832e15605114080abceb3920d0e6 (patch)
tree3094e29b1dcc0ff5ec501f83b5fd0572b0055c8c
parentbda839a7858165b5d7926cafa633ec85d485c74e (diff)
downloadpfsense-ef0090a392d2832e15605114080abceb3920d0e6.zip
pfsense-ef0090a392d2832e15605114080abceb3920d0e6.tar.gz
Remove previous firmware.tgz on bootup if present.
-rwxr-xr-xetc/rc.bootup6
1 files changed, 6 insertions, 0 deletions
diff --git a/etc/rc.bootup b/etc/rc.bootup
index 5384461..ba89eff 100755
--- a/etc/rc.bootup
+++ b/etc/rc.bootup
@@ -55,6 +55,12 @@
$avail = $memory[0];
echo " done.\n";
+ conf_mount_rw();
+
+ /* remove previous firmware upgrade if present */
+ if(file_exists("/root/firmware.tgz"))
+ unlink(""/root/firmware.tgz"");
+
/* start devd (dhclient now uses it */
echo "Starting device manager (devd)...";
mute_kernel_msgs();
OpenPOWER on IntegriCloud