45 lines · 1.0 KB · Shell
RawDownload
#!/bin/sh adb shell "mount -o remount,rw /"adb shell "mount -o remount,rw /system" echo Grabbing ramdiskadb shell "mkdir /boot"adb shell "mount /dev/block/mmcblk0p1 /boot"adb pull /boot/uRamdisk work/uRamdisk echo Unpacking ramdiskcd workmkdir diskdd bs=1 if=uRamdisk of=disk/uRamdisk.gz skip=64cd diskgunzip -c uRamdisk.gz | cpio -irm uRamdisk.gz echo Bringing in inferno-enabled init.rccp ../../init.rc init.rc echo Repacking ramdiskfind . -regex "./.*"| cpio -ov -H newc | gzip > ../repacked-ramdisk.gz../../mkimage  -A ARM -T RAMDisk -n Image -d ../repacked-ramdisk.gz ../uRamdiskcd ..rm repacked-ramdisk.gz echo Pushing the boot chooseradb push ../bootpicker/picker /data/picker echo Pushing inferno.sh to deviceadb push ../inferno.sh /system/bin/inferno.shadb push uRamdisk /boot/uRamdisk cd .. echo Pushing the audio librariesadb push audio/libaudioflinger_inferno.so /system/lib/adb push audio/libinfernoaudio.so /system/lib echo Pushing the custom mediaserveradb push audio/mediaserver-inferno /system/bin adb shell reboot