Skip to content

chroot bind script #2

Description

@itdaniher

Currently:

/system/xbin/mount -o rw,remount /dev/block/mmcblk0p34 /system
echo 'performance' > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
losetup /dev/block/loop0 /data/media/0/debian.img 
/system/xbin/mount -t ext4 -o loop /dev/block/loop0 $rfs
mkdir -f $rfs
/system/xbin/mount --bind /dev $rfs/dev
/system/xbin/mount --bind /proc $rfs/proc
/system/xbin/mount --bind /system $rfs/system
/system/xbin/mount --bind /sys $rfs/sys
curl itdaniher.com/ip
export TERM=linux
export HOSTNAME=debian
export HOME=/root
export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/system/xbin:/system/bin
chroot $rfs /bin/bash --login -i

May require additional TLC.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions