android_bootable_recovery/killrecovery.sh

23 lines
409 B
Bash
Raw Permalink Normal View History

2010-06-09 22:49:44 +00:00
#!/sbin/sh
mkdir -p /sd-ext
2010-06-11 07:49:49 +00:00
rm /cache/recovery/command
rm /cache/update.zip
touch /tmp/.ignorebootmessage
2010-08-17 23:55:38 +00:00
kill $(ps | grep /sbin/adbd)
kill $(ps | grep /sbin/recovery)
2010-07-20 23:23:18 +00:00
# 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
2010-08-17 23:55:38 +00:00
# Droid X
if [ -f /init.mapphone_cdma.rc ]
2010-08-16 08:21:10 +00:00
then
/sbin/recovery &
fi
2010-08-17 23:55:38 +00:00
exit 1