summaryrefslogtreecommitdiffstats
path: root/etc/rc.firmware
diff options
context:
space:
mode:
authorRenato Botelho <renato.botelho@bluepex.com>2009-09-16 10:16:23 -0300
committerRenato Botelho <renato.botelho@bluepex.com>2009-09-16 10:16:23 -0300
commit3bcd5555f66b579ae1027fa321c40abdd3e3506c (patch)
tree760b5cc9e3d84fd6c1b1ed51547359f7bebfb2c2 /etc/rc.firmware
parent1d333258dc840cfdfa91d4d5566a9189e0ead9fe (diff)
downloadpfsense-3bcd5555f66b579ae1027fa321c40abdd3e3506c.zip
pfsense-3bcd5555f66b579ae1027fa321c40abdd3e3506c.tar.gz
Remove image file when error occour because image file is greater than partition size
Diffstat (limited to 'etc/rc.firmware')
-rwxr-xr-xetc/rc.firmware1
1 files changed, 1 insertions, 0 deletions
diff --git a/etc/rc.firmware b/etc/rc.firmware
index e0dcbf5..62a309b 100755
--- a/etc/rc.firmware
+++ b/etc/rc.firmware
@@ -203,6 +203,7 @@ pfSenseNanoBSDupgrade)
echo "Upgrade failed. Please check the system log file for more information" | wall
rm -f /var/run/firmwarelock.dirty
rm -f /var/run/firmware.lock
+ rm -f ${IMG}
/etc/rc.conf_mount_ro
exit 1
fi
OpenPOWER on IntegriCloud