update model detection

This commit is contained in:
Alfonso Gamboa
2022-08-07 18:27:04 -07:00
parent 5fd295bb1b
commit 5f8c171790
5 changed files with 62 additions and 15 deletions

View File

@@ -38,18 +38,10 @@ case "$1" in
rm -rf /opt/wz_mini/tmp/configs
fi
#Check for Car FW
if [ -f /opt/wz_mini/tmp/.WYZEC1-JZ ]; then
if cat /system/bin/app.ver | grep 4.55; then
touch /opt/wz_mini/tmp/.CAR
echo "Car FW detected!"
fi
fi
;;
*)
echo "Usage: $0 {start}"
exit 1
exit 1
;;
esac

View File

@@ -0,0 +1,30 @@
#!/bin/sh
### BEGIN INIT INFO
# Provides:
# Short-Description: Detect device CAR
# Description: Detect which CAR device
### END INIT INFO
case "$1" in
start)
echo "#####$(basename "$0")#####"
echo "Checking for CAR FW"
if [ -f /opt/wz_mini/tmp/.WYZEC1-JZ ]; then
if cat /system/bin/app.ver | grep 4.55; then
touch /opt/wz_mini/tmp/.CAR
echo "CAR FW detected!"
else
echo "CAR not detected"
fi
fi
;;
*)
echo "Usage: $0 {start}"
exit 1
;;
esac

View File

@@ -1 +1 @@
Sat Aug 6 11:25:08 PM PDT 2022
Sun Aug 7 06:26:10 PM PDT 2022