From 5eaf060a9cb25f809df96bd124173891f8c4b954 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Thu, 18 Sep 2014 16:37:31 -0300 Subject: Initial import --- chroot-firefox | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100755 chroot-firefox (limited to 'chroot-firefox') diff --git a/chroot-firefox b/chroot-firefox new file mode 100755 index 0000000..5f78555 --- /dev/null +++ b/chroot-firefox @@ -0,0 +1,20 @@ +#!/bin/bash +# +# Chroot wrapper +# + +if [ -z "$1" ]; then + chroot="wheezy" +else + chroot="$1" +fi + +# Load configuration +if [ -e "$HOME/.config/scripts/chroot" ]; then + source $HOME/.config/scripts/chroot +fi + +xhost local:$CHROOT_USER +sudo su $CHROOT_USER -c "schroot -d /home/$CHROOT_USER -c $chroot -p iceweasel" & +sleep 1 +xhost - -- cgit v1.2.3