This replaces deprecated backticks by more versatile $(...) syntax.
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
[ $? -eq 0 -a -f "${FW}" ] || exit 1
}
-F=`md5sum -b ${FW} | cut -d" " -f1`
+F=$(md5sum -b ${FW} | cut -d" " -f1)
[ "$F" = "${MD5_FW}" ] || {
echo "Failed to verify Firmware MD5"
exit 1
w921v_fw_cutter
[ $? -eq 0 ] || exit 1
-T=`md5sum -b ${FW_TAPI} | cut -d" " -f1`
-D=`md5sum -b ${FW_DSL} | cut -d" " -f1`
+T=$(md5sum -b ${FW_TAPI} | cut -d" " -f1)
+D=$(md5sum -b ${FW_DSL} | cut -d" " -f1)
[ "$T" = "${MD5_TAPI}" -a "$D" = "${MD5_DSL}" ] || {
echo "Failed to verify MD5"