blob: 41f4d96f8b640b3a0424ff4fb1bc14d05b231a34 [file] [log] [blame]
attn1e00995c2011-01-31 18:59:47 -05001#!/sbin/sh
2#
3# Remove KINETO if TMUS or GOOGLE Radio firmware not preset.
4#
5
6c=`/system/bin/getprop ro.carrier`
7p=/system/app/MS-HTCVISION-KNT20-02.apk
8r=y
9
10if [ "$c" = "TMUS" ];
11 then
12 r=n
13fi
14
15if [ "$c" = "GOOGLE" ];
16 then
17 r=n
18fi
19
20if [ "$r" = "y" ];
21 then
22 if [ -f $p ];
23 then
24 rm -f /system/app/MS-HTCVISION-KNT20-02.apk
25 rm -f /system/lib/libkineto.so
26 rm -f /system/lib/libganril.so
27 rm -f /system/lib/librilswitch.so
28 sed 's/librilswitch.so/libhtc_ril.so/' /system/build.prop > /tmp/build.tmp
29 sed '/rilswitch/d' /tmp/build.tmp > /system/build.prop
30 chmod 644 /system/build.prop
31 rm /tmp/build*
32 fi
33fi
34
35exit 0