Skip to content

Instantly share code, notes, and snippets.

@lrvick
Created May 8, 2012 03:00
Show Gist options
  • Select an option

  • Save lrvick/2632221 to your computer and use it in GitHub Desktop.

Select an option

Save lrvick/2632221 to your computer and use it in GitHub Desktop.

Revisions

  1. lrvick revised this gist May 8, 2012. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions init.sh
    Original file line number Diff line number Diff line change
    @@ -5,6 +5,7 @@ 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}"
  2. lrvick created this gist May 8, 2012.
    10 changes: 10 additions & 0 deletions init.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,10 @@
    USER='lrvick'

    cd /data/local/arch

    if ! mountpoint -q dev; then
    mount -t proc /proc proc
    mount -o bind /dev dev
    fi

    chroot . /bin/bash -c "source /etc/profile; export HOME=/home/${USER}; export TERM=xterm-256color; clear; su - ${USER}"