local hal_sensors=kbd
local has_sensors=true
- case "$(cat $DMIPATH/uevent)" in
+ case "$UEVENT" in
*Lucid-MWE*)
set_property ro.ignore_atkbd 1
hal_sensors=hdaps
function init_tscal()
{
- case "$PRODUCT" in
- ST70416-6*)
+ case "$UEVENT" in
+ *ST70416-6*)
modprobe gslx680_ts_acpi
;&
- T91|T101|ET2002|74499FU|945GSE-ITE8712|CF-19[CDYFGKLP]*)
+ *T91*|*T101*|*ET2002*|*74499FU*|*945GSE-ITE8712*|*CF-19[CDYFGKLP]*|*TECLAST:rntPAD*)
create_pointercal
return
;;
function init_ril()
{
- case "$(cat $DMIPATH/uevent)" in
+ case "$UEVENT" in
*TEGA*|*2010:svnIntel:*|*Lucid-MWE*)
set_property rild.libpath /system/lib/libhuaweigeneric-ril.so
set_property rild.libargs "-d /dev/ttyUSB2 -v /dev/ttyUSB1"
DMIPATH=/sys/class/dmi/id
BOARD=$(cat $DMIPATH/board_name)
PRODUCT=$(cat $DMIPATH/product_name)
+UEVENT=$(cat $DMIPATH/uevent)
# import cmdline variables
for c in `cat /proc/cmdline`; do