-
-
Save jstvz/4661664 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
USER='lrvick' | |
cd /data/local/arch | |
if ! mountpoint -q dev; then | |
mount -t proc /proc proc | |
mount -o bind /dev dev | |
mount -o bind /dev/pts dev/pts | |
fi | |
chroot . /bin/bash -c "source /etc/profile; export HOME=/home/${USER}; export TERM=xterm-256color; clear; su - ${USER}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment