diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2007-05-14 22:18:01 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2007-05-14 22:18:01 +0000 |
commit | 7c26341a041b60b31060bd5e2b375789afd3f4a3 (patch) | |
tree | dc2777e91a767395be280d149d4b679eecd8bf9c /etc | |
parent | 786cd81da0b78475800644d7c4ae0e2d20b87480 (diff) | |
download | pfsense-7c26341a041b60b31060bd5e2b375789afd3f4a3.zip pfsense-7c26341a041b60b31060bd5e2b375789afd3f4a3.tar.gz |
Remove previous firmware.tgz on bootup if present.
Diffstat (limited to 'etc')
-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 b7d51dc..9766505 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(); |