From e39accc8e4eb55fbd31215a20a3bb97b290ef305 Mon Sep 17 00:00:00 2001 From: attn1 Date: Fri, 4 Mar 2011 08:11:43 -0500 Subject: [PATCH] Add Telus NAM config; use egrep where more appropriate than grep Change-Id: If60b85fbb5e92a9bb61a5ec1f9129d2d4da0c40f --- prebuilt/common/bin/modelid_cfg.sh | 26 ++++++-------------------- 1 file changed, 6 insertions(+), 20 deletions(-) diff --git a/prebuilt/common/bin/modelid_cfg.sh b/prebuilt/common/bin/modelid_cfg.sh index b4e92523..8a945922 100644 --- a/prebuilt/common/bin/modelid_cfg.sh +++ b/prebuilt/common/bin/modelid_cfg.sh @@ -13,25 +13,7 @@ kineto=/system/app/MS-HTCVISION-KNT20-02.apk rm_kineto=y -cat /proc/cmdline|grep -q androidboot.mid=PC1010000 -if [ $? = 0 ]; - then - rm_kineto=n -fi - -cat /proc/cmdline|grep -q androidboot.mid=PB9910000 -if [ $? = 0 ]; - then - rm_kineto=n -fi - -cat /proc/cmdline|grep -q androidboot.mid=PD1510000 -if [ $? = 0 ]; - then - rm_kineto=n -fi - -cat /proc/cmdline|grep -q androidboot.mid=PB6510000 +cat /proc/cmdline|egrep -q '(PC1010000)|(PB9910000)|(PD1510000)|(PB6510000)' if [ $? = 0 ]; then rm_kineto=n @@ -55,11 +37,15 @@ fi # # Check for spade; if NAM model update DSP and GPS config # +# NAM Models: +# DHD AT&T MODELID PD9812000 +# DHD TELUS MODELID PD9814000 +# cat /proc/cmdline | grep -q spade if [ $? = 0 ]; then -cat /proc/cmdline | grep -q androidboot.mid=PD9812000 +cat /proc/cmdline | egrep -q '(PD9812000)|(PD9814000)' if [ $? = 0 ]; then mv /system/etc/nam/*MCLK.txt /system/etc/soundimage/