Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions eeptools/eepflash.sh
Original file line number Diff line number Diff line change
Expand Up @@ -161,12 +161,12 @@ if [ ! -d "$SYS/$BUS-00$ADDR" ]; then
echo "$TYPE 0x$ADDR" > $SYS/new_device
fi

DD_VERSION=$(dd --version 2>&1 | grep coreutils | sed -e 's/\.//' | cut -d' ' -f 3)
DD_VERSION=$(dd --version 2>&1 | grep coreutils | cut -d' ' -f 3)
if [ -z "$DD_VERSION" ]; then
# probably busybox's dd
DD_STATUS=""
else
if [ "$DD_VERSION" -ge 824 ]; then
if awk "BEGIN {exit !($DD_VERSION >= 8.24)}"; then
DD_STATUS="status=progress"
else
DD_STATUS="status=none"
Expand Down