Skip to content

Instantly share code, notes, and snippets.

@jstvz
Forked from lrvick/init.sh
Created January 29, 2013 03:53
Show Gist options
  • Save jstvz/4661664 to your computer and use it in GitHub Desktop.
Save jstvz/4661664 to your computer and use it in GitHub Desktop.
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