File: installftkit

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 (13 lines) | stat: -rw-r--r-- 372 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
export PATH=DEVICEWORKDIR:$PATH

export ISRO=$(busybox mount|busybox grep /system|busybox grep ro|busybox wc -l)

if busybox test $ISRO -eq 1
then
    busybox mount -o remount,rw /system
    (cd /;busybox tar xf DEVICEWORKDIR/ftkit.tar)
    busybox mount -o remount,ro /system
else
    (cd /;busybox tar xf DEVICEWORKDIR/ftkit.tar)
fi
busybox rm -r DEVICEWORKDIR/ftkit.tar