kernel-module-qualcomm: fix printing of error message

Error message was being printed upon successful copy of the
MAC addresses file, instead of upon failure.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
This commit is contained in:
Hector Palacios 2019-08-28 12:17:52 +02:00
parent 0152a70773
commit c586b05bd2
1 changed files with 1 additions and 3 deletions

View File

@ -53,9 +53,7 @@ if ! cmp -s ${TMP_MACFILE} ${MACFILE}; then
mount -o remount,rw ${mount_point}
fi
if cp ${TMP_MACFILE} ${MACFILE}; then
log "3" "[ERROR] Could not create ${MACFILE}"
fi
cp ${TMP_MACFILE} ${MACFILE} || log "3" "[ERROR] Could not create ${MACFILE}"
fi
rm -f "${TMP_MACFILE}"