File: installbootkit

package info (click to toggle)
xperia-flashtool 0.9.34%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 3,692 kB
  • sloc: java: 30,923; xml: 540; sh: 348; makefile: 12
file content (19 lines) | stat: -rw-r--r-- 494 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
export PATH=DEVICEWORKDIR:$PATH

export BUSYBOX=$(/system/flashtool/getbbpath)

$BUSYBOX rm -Rf /system/kernel/*ko

CHARGEMONSIZE=$($BUSYBOX stat -c %s /system/bin/chargemon)

if $BUSYBOX test $CHARGEMONSIZE -gt 10000
then
   $BUSYBOX cp /system/bin/chargemon /system/bin/charger
fi

(cd /;$BUSYBOX tar xf DEVICEWORKDIR/bootkit.tar)

$BUSYBOX mkdir -p /cache/recovery
/system/bin/chown system.cache /cache/recovery
/system/bin/chmod 0770 /cache/recovery
$BUSYBOX rm -r DEVICEWORKDIR/bootkit.tar