diff options
Diffstat (limited to 'etc')
-rwxr-xr-x | etc/rc.firmware | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/etc/rc.firmware b/etc/rc.firmware index 93d7223..b561ae5 100755 --- a/etc/rc.firmware +++ b/etc/rc.firmware @@ -170,6 +170,9 @@ upgrade) echo "Extracting $IMG." | logger -p daemon.info -i -t Upgrade gzip -d $IMG NEWIMG="`echo $IMG | sed 's/.tgz/.tar/'`" + if [ -f $NEWIMG ]; then + rm $NEWIMG + fi echo "Installing $NEWIMG." | logger -p daemon.info -i -t Upgrade for i in `/usr/bin/tar tvf $NEWIMG | egrep "(^d)" | nawk '{print $9;}'}'`; do |