diff options
| author | Silvio Rhatto <rhatto@riseup.net> | 2013-01-13 15:37:49 -0200 |
|---|---|---|
| committer | Silvio Rhatto <rhatto@riseup.net> | 2013-01-13 15:37:49 -0200 |
| commit | 454c6e3c77b3db507ee81875219089047fc2d5a3 (patch) | |
| tree | 34ea351902ddd6094bc0a96a65b4bc07e9ee83d8 /chroot-iceweasel | |
| download | scripts-454c6e3c77b3db507ee81875219089047fc2d5a3.tar.gz scripts-454c6e3c77b3db507ee81875219089047fc2d5a3.tar.bz2 | |
Initial import
Diffstat (limited to 'chroot-iceweasel')
| -rwxr-xr-x | chroot-iceweasel | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/chroot-iceweasel b/chroot-iceweasel new file mode 100755 index 0000000..f2298e7 --- /dev/null +++ b/chroot-iceweasel @@ -0,0 +1,20 @@ +#!/bin/bash +# +# Chroot wrapper +# + +if [ -z "$1" ]; then + chroot="squeeze" +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 - |
