#!/system/bin/sh

export PATH=/usr/bin:/usr/sbin:/bin:$PATH
export TERM=linux
export HOME=/root
export SHELL=/bin/bash
su -c 'mount /dev/block/vold/179:2 /system/sd'
su -c 'mount -t devpts /devpts /system/sd/dev/pts'
su -c 'mount -t proc /proc /system/sd/proc'
su -c 'mount -t sysfs /sysfs /system/sd/sys'
su -c 'rm -f /system/sd/etc/mtab'
su -c 'rm -rf /system/sd/tmp/*'
su -c 'rm -rf /system/sd/tmp/.X*'
su -c 'ln -s /proc/mounts /system/sd/etc/mtab'
su -c 'busybox chroot /system/sd /bin/bash'
