Skip to content

Instantly share code, notes, and snippets.

@lrvick
Created May 8, 2012 03:00
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save lrvick/2632221 to your computer and use it in GitHub Desktop.
Save lrvick/2632221 to your computer and use it in GitHub Desktop.
Chrooted Arch Linux environment setup script for Android
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