#!/bin/sh adb shell "mount -o remount,rw /" adb shell "mount -o remount,rw /system" echo Grabbing ramdisk adb shell "mkdir /boot" adb shell "mount /dev/block/mmcblk0p1 /boot" adb pull /boot/uRamdisk work/uRamdisk echo Unpacking ramdisk cd work mkdir disk dd bs=1 if=uRamdisk of=disk/uRamdisk.gz skip=64 cd disk gunzip -c uRamdisk.gz | cpio -i rm uRamdisk.gz echo Bringing in inferno-enabled init.rc cp ../../init.rc init.rc echo Repacking ramdisk find . -regex "./.*"| cpio -ov -H newc | gzip > ../repacked-ramdisk.gz ../../mkimage -A ARM -T RAMDisk -n Image -d ../repacked-ramdisk.gz ../uRamdisk cd .. rm repacked-ramdisk.gz echo Pushing the boot chooser adb push ../bootpicker/picker /data/picker echo Pushing inferno.sh to device adb push ../inferno.sh /system/bin/inferno.sh adb push uRamdisk /boot/uRamdisk cd .. echo Pushing the audio libraries adb push audio/libaudioflinger_inferno.so /system/lib/ adb push audio/libinfernoaudio.so /system/lib echo Pushing the custom mediaserver adb push audio/mediaserver-inferno /system/bin adb shell reboot