diff options
Diffstat (limited to 'etc/rc.firmware_auto')
-rwxr-xr-x | etc/rc.firmware_auto | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/etc/rc.firmware_auto b/etc/rc.firmware_auto index 33ef2b6..e7247cb 100755 --- a/etc/rc.firmware_auto +++ b/etc/rc.firmware_auto @@ -22,7 +22,7 @@ fi #echo "Downloading $FMFILENAME from $FMBASEURL ..." | logger -p daemon.info -i -t AutoUpgrade #/usr/bin/fetch -o /tmp/latest.tgz $FETCHFILENAME | logger -p daemon.info -i -t AutoUpgrade -#echo "Downloading $FMFILENAME.md5 from $FMBASEURL ..." | logger -p daemon.info -i -t AutoUpgrade +#echo "Downloading $FMFILENAME.md5 from $FMBASEURL ..." | logger -p daemon.info -i -t AutoUpgrade #/usr/bin/fetch -o /tmp/latest.tgz.md5 $FETCHFILENAME.md5 | logger -p daemon.info -i -t AutoUpgrade PMD=`/bin/cat /tmp/latest.tgz.md5 | cut -d" " -f4 ` @@ -31,20 +31,20 @@ MD=`/sbin/md5 /tmp/latest.tgz | cut -d" " -f4` PLATFORM=`cat /etc/platform` echo " Package MD5: ${PMD}" | logger -p daemon.info -i -t AutoUpgrade -echo "Downloaded MD5: ${MD}" | logger -p daemon.info -i -t AutoUpgrade +echo "Downloaded MD5: ${MD}" | logger -p daemon.info -i -t AutoUpgrade if [ "$PMD" = "" ]; then - echo "Package MD5 is null md5. Require proxy auth?" | logger -p daemon.info -i -t AutoUpgrade + echo "Package MD5 is null md5. Require proxy auth?" | logger -p daemon.info -i -t AutoUpgrade exit 1 fi if [ "$MD" = "" ]; then - echo "Downloaded MD5 is null md5. Require proxy auth?" | logger -p daemon.info -i -t AutoUpgrade + echo "Downloaded MD5 is null md5. Require proxy auth?" | logger -p daemon.info -i -t AutoUpgrade exit 1 fi if [ "$PMD" = "$MD" ]; then - echo "MD5's match." | logger -p daemon.info -i -t AutoUpgrade + echo "MD5's match." | logger -p daemon.info -i -t AutoUpgrade echo "Beginning ${product} upgrade." | wall if [ "$PLATFORM" = "net45xx" ]; then /usr/local/bin/php /etc/rc.conf_mount_rw @@ -83,6 +83,6 @@ if [ "$PMD" = "$MD" ]; then exit 0 fi -echo "MD5's do not match. Upgrade aborted." | logger -p daemon.info -i -t AutoUpgrade +echo "MD5's do not match. Upgrade aborted." | logger -p daemon.info -i -t AutoUpgrade rm /tmp/latest* exit 1 |