Skip to content

Commit

Permalink
Merge "Add Telus NAM config; use egrep where more appropriate than gr…
Browse files Browse the repository at this point in the history
…ep" into gingerbread
  • Loading branch information
hyperb1iss authored and Gerrit Code Review committed Mar 4, 2011
2 parents fcce797 + b5fcb62 commit c30bda7
Showing 1 changed file with 6 additions and 20 deletions.
26 changes: 6 additions & 20 deletions prebuilt/common/bin/modelid_cfg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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/
Expand Down

0 comments on commit c30bda7

Please sign in to comment.