diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2007-05-14 22:18:07 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2007-05-14 22:18:07 +0000 |
commit | ef0090a392d2832e15605114080abceb3920d0e6 (patch) | |
tree | 3094e29b1dcc0ff5ec501f83b5fd0572b0055c8c | |
parent | bda839a7858165b5d7926cafa633ec85d485c74e (diff) | |
download | pfsense-ef0090a392d2832e15605114080abceb3920d0e6.zip pfsense-ef0090a392d2832e15605114080abceb3920d0e6.tar.gz |
Remove previous firmware.tgz on bootup if present.
-rwxr-xr-x | etc/rc.bootup | 6 |
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(); |