blob: b94936e2770c65350d7b52fa0ce5fc12158da1d4 [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
Christopher Lais493719d2011-02-12 15:00:06 -060020if [ "$c" = "ALL" ];
21 then
22 r=n
23fi
24
attn1e00995c2011-01-31 18:59:47 -050025if [ "$r" = "y" ];
26 then
27 if [ -f $p ];
28 then
29 rm -f /system/app/MS-HTCVISION-KNT20-02.apk
30 rm -f /system/lib/libkineto.so
31 rm -f /system/lib/libganril.so
32 rm -f /system/lib/librilswitch.so
33 sed 's/librilswitch.so/libhtc_ril.so/' /system/build.prop > /tmp/build.tmp
34 sed '/rilswitch/d' /tmp/build.tmp > /system/build.prop
35 chmod 644 /system/build.prop
36 rm /tmp/build*
37 fi
38fi
39
40exit 0