Created
August 12, 2012 15:18
-
-
Save rossy/3332260 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/system/xbin/sh | |
cd /data/local/arch | |
echo rainbow > /proc/sys/kernel/hostname | |
if ! mountpoint -q dev; then | |
mount -t proc /proc proc | |
mount -t sysfs sysfs sys | |
mount -o bind /dev dev | |
mount -o bind /dev/pts dev/pts | |
mount -o remount,suid /data | |
mount -o bind /mnt/sdcard mnt/sdcard | |
mount -o bind /mnt/emmc mnt/emmc | |
mount -t tmpfs tmpfs tmp | |
mkdir /dev/shm | |
mount -t tmpfs tmpfs /dev/shm | |
ln -s mnt/sdcard sdcard | |
ln -s mnt/emmc emmc | |
ln -s /dev/snd/pcmC0D0c /dev/pcmC0D0c | |
ln -s /dev/snd/pcmC0D0p /dev/pcmC0D0p | |
ln -s /dev/snd/controlC0 /dev/controlC0 | |
ln -s /dev/snd/timer /dev/timer | |
ln -s /dev/graphics/fb0 /dev/fb0 | |
ln -s /dev/graphics/fb1 /dev/fb1 | |
ln -s /dev/graphics/fb2 /dev/fb2 | |
ln -s /dev/graphics/fb3 /dev/fb3 | |
ln -s /dev/graphics/fb4 /dev/fb4 | |
cp etc/mtab.initial etc/mtab | |
fi | |
setprop alsa.mixer.playback.master Front | |
setprop alsa.mixer.capture.master Capture | |
setprop alsa.mixer.playback.earpiece Master | |
setprop alsa.mixer.capture.earpiece Capture | |
setprop alsa.mixer.playback.headset Master | |
setprop alsa.mixer.playback.speaker Master | |
chroot . /bin/bash -l -c "nice -n -10 su - rossy" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment