diff --git a/target/linux/ramips/mt7621/base-files/lib/upgrade/iodata.sh b/target/linux/ramips/mt7621/base-files/lib/upgrade/iodata.sh index 40b2b2c76b2..cf5dbe7e298 100644 --- a/target/linux/ramips/mt7621/base-files/lib/upgrade/iodata.sh +++ b/target/linux/ramips/mt7621/base-files/lib/upgrade/iodata.sh @@ -20,7 +20,7 @@ iodata_mstc_rw_byte() { local mtd="$1" local offset="$2" local setval="$3" - local _val=$(hexdump -s $offset -n 1 -e '"%d"' $mtd) + local _val=$(hexdump -s $offset -n 1 -e '1/1 "%d"' $mtd) if [ -z "$setval" ]; then echo $_val