- if test -e $INSTALLDIR/busybox.power.md5; then
- INSTBINARY_MD5=`md5sum /bin/busybox | awk '{ print $1 }'`
- ORIGBINARY_MD5=`cat $INSTALLDIR/busybox.power.md5`
- if test ! "$INSTBINARY_MD5" == "$ORIGBINARY_MD5"; then
- echo -e "Warning: /bin/busybox has been modified since installing busybox-power (invalid md5 checksum). This can be the result of a busybox upgrade, e.g. from CSSU. Your current /bin/busybox won't be touched, our backup of the original /bin/busybox will be copied to /opt/busybox.original. \n" >> /tmp/busybox-power-error
+ if test -e $INSTALLDIR/busybox.power.sha1; then
+ INSTBINARY_SHA1=`sha1sum /bin/busybox | awk '{ print $1 }'`
+ ORIGBINARY_SHA1=`cat $INSTALLDIR/busybox.power.sha1`
+ if test ! "$INSTBINARY_SHA1" == "$ORIGBINARY_SHA1"; then
+ echo -e "Warning: /bin/busybox has been modified since installing busybox-power (invalid SHA1 checksum). This can be the result of a busybox upgrade, e.g. from CSSU. Your current /bin/busybox won't be touched, our backup of the original /bin/busybox will be copied to /opt/busybox.original. \n" >> /tmp/busybox-power-error