- if test "`cat $INSTALLDIR/busybox.distrib.version`" == "`GETBBVERSION`"; then
- # The backup has been changed whilst busybox hasn't been upgraded
+ if test -e $INSTALLDIR/busybox.distrib.version; then
+ if test "`cat $INSTALLDIR/busybox.distrib.version`" == "`GETBBVERSION`"; then
+ # The backup has been changed whilst busybox hasn't been upgraded
+ echo -e "Warning: the backup of the original BusyBox binary has" \
+ "been modified since installing busybox-power (invalid SHA1" \
+ "checksum). Do not continue unless you're sure that $DISTBIN" \
+ "is not corrupted.\n" >> /tmp/busybox-power-error
+ fi
+ else