mirror of
https://github.com/gtxaspec/wz_mini_hacks.git
synced 2025-08-09 20:14:04 +00:00
update model detection
This commit is contained in:
@@ -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
|
||||
|
||||
|
30
SD_ROOT/wz_mini/etc/init.d/S06car
Normal file
30
SD_ROOT/wz_mini/etc/init.d/S06car
Normal 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
|
||||
|
@@ -1 +1 @@
|
||||
Sat Aug 6 11:25:08 PM PDT 2022
|
||||
Sun Aug 7 06:26:10 PM PDT 2022
|
||||
|
Reference in New Issue
Block a user