~thbraeutigam/x10customizer/main

« back to all changes in this revision

Viewing changes to program/phone/bin/100_install_basics.sh

  • Committer: thbraeutigam
  • Date: 2010-11-22 02:40:12 UTC
  • Revision ID: thorben.braeutigam@gmail.com-20101122024012-tq4tznx1rzdrugc5
v0.99.2pre

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/system/bin/sh
 
2
mount -o remount,rw -t yaffs2 /dev/block/mtdblock2 /system
 
3
##
 
4
echo "Install busybox"
 
5
##
 
6
proot="/sdcard/customizer"
 
7
mkdir $proot/logs
 
8
dd if=$proot/phone/bin/busybox of=/system/bin/busybox
 
9
cd /system/bin
 
10
ln -s busybox "["
 
11
ln -s busybox cp
 
12
ln -s busybox echo
 
13
ln -s busybox grep
 
14
ln -s busybox printf
 
15
ln -s busybox pwd
 
16
ln -s busybox touch
 
17
ln -s busybox uniq
 
18
ln -s busybox sed
 
19
 
 
20
##
 
21
echo "Install bash"
 
22
##
 
23
 
 
24
dd if=$proot/bin/bash of=/system/bin/bash
 
25
chmod 0755 bash
 
26
 
 
27
##
 
28
# Run Root-Optimizer
 
29
##
 
30
 
 
31
su -c "/system/bin/bash $proot/bin/101_executor.sh"