Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Advent Vega ROM installer script - by Paul O'Brien, @paulobrien, http://Vega.MoDaCo.com
- #
- # This script is dedicated to those who hated on me on 'that other site'... then used the scripts from my update themselves!
- # Today's thought for the day - when you read / use something from the Internet, that has taken someone some time...
- # ... and that persons time has value. Nothing on the Internet is free - someone has paid for it.
- #
- # Peace to you all. \o/
- #
- echo Waiting for device... ensure 'USB Debugging' is enabled in Settings-Applications-Development and connect to PC...
- chmod 4755 ./adb-linux
- ./adb-linux wait-for-device
- echo Mounting and emptying system partition...
- ./adb-linux remount
- ./adb-linux push files/data/mcr/sh /data/sh
- ./adb-linux shell "/sbin/busybox chmod 4755 /data/sh"
- ./adb-linux shell "/system/bin/toolbox stop"
- ./adb-linux shell "/sbin/busybox rm -r /data/dalvik-cache"
- ./adb-linux shell "/sbin/busybox rm -r /system/bin/* ; /sbin/busybox cp /data/sh /system/bin/sh"
- ./adb-linux shell "/sbin/busybox pkill -9 system"
- ./adb-linux wait-for-device
- ./adb-linux shell "/sbin/busybox fuser -km /system"
- ./adb-linux shell "/sbin/busybox umount -l /system ; /sbin/busybox mount /dev/block/mtdblock3 /system"
- ./adb-linux shell "/sbin/busybox mkdir -p /system/bin ; /sbin/busybox cp /data/sh /system/bin/sh"
- echo Waiting for device...
- ./adb-linux wait-for-device
- ./adb-linux shell "/sbin/busybox rm -r /system/* ; /sbin/busybox mkdir -p /system/bin ; /sbin/busybox cp /data/sh /system/bin/sh"
- ./adb-linux shell "/sbin/busybox sync"
- echo Flash fix phase 1...
- ./adb-linux push files/system/bin/sh /data/mcr/sh.new
- mv files/system/bin/sh ./sh
- echo Copying new files...
- ./adb-linux push files /
- echo Creating Symlinks...
- ./adb-linux shell /sbin/busybox ln -s /system/bin/toolbox /system/bin/cat
- ./adb-linux shell /sbin/busybox ln -s /system/bin/toolbox /system/bin/chmod
- ./adb-linux shell /sbin/busybox ln -s /system/bin/toolbox /system/bin/chown
- ./adb-linux shell /sbin/busybox ln -s /system/bin/toolbox /system/bin/cmp
- ./adb-linux shell /sbin/busybox ln -s /sbin/busybox /system/bin/cp
- ./adb-linux shell /sbin/busybox ln -s /system/bin/toolbox /system/bin/cut
- ./adb-linux shell /sbin/busybox ln -s /system/bin/toolbox /system/bin/date
- ./adb-linux shell /sbin/busybox ln -s /system/bin/toolbox /system/bin/dd
- ./adb-linux shell /sbin/busybox ln -s /system/bin/toolbox /system/bin/df
- ./adb-linux shell /sbin/busybox ln -s /system/bin/toolbox /system/bin/dmesg
- ./adb-linux shell /sbin/busybox ln -s /system/bin/toolbox /system/bin/getevent
- ./adb-linux shell /sbin/busybox ln -s /system/bin/toolbox /system/bin/getprop
- ./adb-linux shell /sbin/busybox ln -s /system/bin/toolbox /system/bin/hd
- ./adb-linux shell /sbin/busybox ln -s /system/bin/toolbox /system/bin/id
- ./adb-linux shell /sbin/busybox ln -s /system/bin/toolbox /system/bin/ifconfig
- ./adb-linux shell /sbin/busybox ln -s /system/bin/toolbox /system/bin/iftop
- ./adb-linux shell /sbin/busybox ln -s /system/bin/toolbox /system/bin/insmod
- ./adb-linux shell /sbin/busybox ln -s /system/bin/toolbox /system/bin/ioctl
- ./adb-linux shell /sbin/busybox ln -s /system/bin/toolbox /system/bin/ionice
- ./adb-linux shell /sbin/busybox ln -s /system/bin/toolbox /system/bin/kill
- ./adb-linux shell /sbin/busybox ln -s /system/bin/toolbox /system/bin/ln
- ./adb-linux shell /sbin/busybox ln -s /system/bin/toolbox /system/bin/log
- ./adb-linux shell /sbin/busybox ln -s /system/bin/toolbox /system/bin/ls
- ./adb-linux shell /sbin/busybox ln -s /system/bin/toolbox /system/bin/lsmod
- ./adb-linux shell /sbin/busybox ln -s /system/bin/toolbox /system/bin/mkdir
- ./adb-linux shell /sbin/busybox ln -s /system/bin/toolbox /system/bin/mount
- ./adb-linux shell /sbin/busybox ln -s /system/bin/toolbox /system/bin/mv
- ./adb-linux shell /sbin/busybox ln -s /system/bin/toolbox /system/bin/nandread
- ./adb-linux shell /sbin/busybox ln -s /system/bin/toolbox /system/bin/netstat
- ./adb-linux shell /sbin/busybox ln -s /system/bin/toolbox /system/bin/newfs_msdos
- ./adb-linux shell /sbin/busybox ln -s /system/bin/toolbox /system/bin/notify
- ./adb-linux shell /sbin/busybox ln -s /system/bin/toolbox /system/bin/printenv
- ./adb-linux shell /sbin/busybox ln -s /system/bin/toolbox /system/bin/ps
- ./adb-linux shell /sbin/busybox ln -s /system/bin/toolbox /system/bin/reboot
- ./adb-linux shell /sbin/busybox ln -s /system/bin/toolbox /system/bin/renice
- ./adb-linux shell /sbin/busybox ln -s /system/bin/toolbox /system/bin/rm
- ./adb-linux shell /sbin/busybox ln -s /system/bin/toolbox /system/bin/rmdir
- ./adb-linux shell /sbin/busybox ln -s /system/bin/toolbox /system/bin/rmmod
- ./adb-linux shell /sbin/busybox ln -s /system/bin/toolbox /system/bin/route
- ./adb-linux shell /sbin/busybox ln -s /system/bin/toolbox /system/bin/schedtop
- ./adb-linux shell /sbin/busybox ln -s /system/bin/toolbox /system/bin/sendevent
- ./adb-linux shell /sbin/busybox ln -s /system/bin/toolbox /system/bin/setconsole
- ./adb-linux shell /sbin/busybox ln -s /system/bin/toolbox /system/bin/setprop
- ./adb-linux shell /sbin/busybox ln -s /system/bin/toolbox /system/bin/sleep
- ./adb-linux shell /sbin/busybox ln -s /system/bin/toolbox /system/bin/smd
- ./adb-linux shell /sbin/busybox ln -s /system/bin/toolbox /system/bin/start
- ./adb-linux shell /sbin/busybox ln -s /system/bin/toolbox /system/bin/stop
- ./adb-linux shell /sbin/busybox ln -s /system/bin/toolbox /system/bin/sync
- ./adb-linux shell /sbin/busybox ln -s /system/bin/toolbox /system/bin/top
- ./adb-linux shell /sbin/busybox ln -s /system/bin/toolbox /system/bin/umount
- ./adb-linux shell /sbin/busybox ln -s /system/bin/toolbox /system/bin/vmstat
- ./adb-linux shell /sbin/busybox ln -s /system/bin/toolbox /system/bin/watchprops
- ./adb-linux shell /sbin/busybox ln -s /system/bin/toolbox /system/bin/wipe
- echo Setting permissions...
- ./adb-linux shell /sbin/busybox chown 0 /system
- ./adb-linux shell /sbin/busybox chgrp 0 /system
- ./adb-linux shell /sbin/busybox chmod -R 0755 /system
- ./adb-linux shell /sbin/busybox chown 0 /system/bin
- ./adb-linux shell /sbin/busybox chgrp 2000 /system/bin
- ./adb-linux shell /sbin/busybox chmod -R 0755 /system/bin
- ./adb-linux shell /sbin/busybox chown 0 /system/bin/netcfg
- ./adb-linux shell /sbin/busybox chgrp 3003 /system/bin/netcfg
- ./adb-linux shell /sbin/busybox chmod 2755 /system/bin/netcfg
- ./adb-linux shell /sbin/busybox chown 0 /system/bin/ping
- ./adb-linux shell /sbin/busybox chgrp 3004 /system/bin/ping
- ./adb-linux shell /sbin/busybox chmod 02755 /system/bin/ping
- ./adb-linux shell /sbin/busybox chown 1002 /system/etc/dbus.conf
- ./adb-linux shell /sbin/busybox chgrp 1002 /system/etc/dbus.conf
- ./adb-linux shell /sbin/busybox chmod 0440 /system/etc/dbus.conf
- ./adb-linux shell /sbin/busybox chown 1014 /system/etc/dhcpcd/dhcpcd-run-hooks
- ./adb-linux shell /sbin/busybox chgrp 2000 /system/etc/dhcpcd/dhcpcd-run-hooks
- ./adb-linux shell /sbin/busybox chmod 0550 /system/etc/dhcpcd/dhcpcd-run-hooks
- ./adb-linux shell /sbin/busybox chown 0 /system/etc/init.goldfish.sh
- ./adb-linux shell /sbin/busybox chgrp 2000 /system/etc/init.goldfish.sh
- ./adb-linux shell /sbin/busybox chmod 0550 /system/etc/init.goldfish.sh
- ./adb-linux shell /sbin/busybox chown -R 0 /system/etc/ppp
- ./adb-linux shell /sbin/busybox chgrp -R 0 /system/etc/ppp
- ./adb-linux shell /sbin/busybox chmod -R 0755 /system/etc/ppp
- ./adb-linux shell /sbin/busybox chown 0 /system/etc/ppp/ip-up-vpn
- ./adb-linux shell /sbin/busybox chgrp 0 /system/etc/ppp/ip-up-vpn
- ./adb-linux shell /sbin/busybox chmod 4755 /system/etc/ppp/ip-up-vpn
- ./adb-linux shell /sbin/busybox chown 0 /system/xbin/su
- ./adb-linux shell /sbin/busybox chgrp 0 /system/xbin/su
- ./adb-linux shell /sbin/busybox chmod 4755 /system/xbin/su
- echo Flashing fix phase 2...
- ./adb-linux shell /sbin/busybox chmod -R 0755 /data/mcr
- ./adb-linux shell /sbin/busybox chown 0 /data/mcr
- ./adb-linux shell /sbin/busybox chgrp 2000 /data/mcr
- mv ./sh files/system/bin/sh
- ./adb-linux shell /sbin/busybox cp /data/mcr/sh.new /system/bin/sh
- echo Flashing boot image...
- ./adb-linux shell /data/mcr/flash_image boot /data/mcr/boot.img
- echo Done, rebooting...
- ./adb-linux reboot
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement