summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbpir-flash2emmc2
1 files changed, 1 insertions, 1 deletions
diff --git a/bpir-flash2emmc b/bpir-flash2emmc
index 3dfee43ae523..8622941e9dc4 100755
--- a/bpir-flash2emmc
+++ b/bpir-flash2emmc
@@ -54,7 +54,7 @@ function restart_driver {
driver="mtk-msdc"
addr="11230000"
-compatible="$(tr -d '\0' 2>/dev/null </proc/device-tree/compatible)"
+compatible="$(cat /proc/device-tree/compatible)"
if [[ "$compatible" == *"bananapi"*"mediatek,mt7622"* ]]; then # BPI-R64
mmcblk=$(get_mmcblk)