Add Telus NAM config; use egrep where more appropriate than grep

Change-Id: If60b85fbb5e92a9bb61a5ec1f9129d2d4da0c40f
This commit is contained in:
attn1 2011-03-04 08:11:43 -05:00
parent e3a79924ce
commit e39accc8e4
1 changed files with 6 additions and 20 deletions

View File

@ -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/