summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Woudstra2023-03-21 21:52:14 +0100
committerEric Woudstra2023-03-21 21:52:14 +0100
commit141ab98b60b0062849407aaf72c615663e4e0908 (patch)
treeed7f15a816f581a9e69d0cd3fc86333aa0adf164
parent49ab34c0167e5b3781c3e361aa3f7b6954a62e75 (diff)
downloadaur-141ab98b60b0062849407aaf72c615663e4e0908.tar.gz
Fix compatible
-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)