aboutsummaryrefslogtreecommitdiffstats
path: root/killrecovery.sh
blob: 352cb4b0651ec2a6bf5828bf975d56b91765c150 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/sbin/sh
mkdir -p /sd-ext
rm /cache/recovery/command
rm /cache/update.zip
touch /tmp/.ignorebootmessage
kill $(ps | grep /sbin/adbd)
kill $(ps | grep /sbin/recovery)

# On the Galaxy S, the recovery comes test signed, but the
# recovery is not automatically restarted.
if [ -f /init.smdkc110.rc ]
then
    /sbin/recovery &
fi

# Droid X
if [ -f /init.mapphone_cdma.rc ]
then
    /sbin/recovery &
fi

exit 1