diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2013-02-01 11:43:15 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2013-02-01 11:43:15 -0200 |
commit | bd7dbc82fb634f3da584f6bb711644f3ec9d3537 (patch) | |
tree | 9c0c5fe3b8a9c2ddb8848dad905d2c0a365ef79c /chroot-firefox | |
parent | 5cf3c9767d067207f7be7c57d8c6d4e96a1ced0d (diff) | |
download | scripts-bd7dbc82fb634f3da584f6bb711644f3ec9d3537.tar.gz scripts-bd7dbc82fb634f3da584f6bb711644f3ec9d3537.tar.bz2 |
Default chroot version is squeeze
Diffstat (limited to 'chroot-firefox')
-rwxr-xr-x | chroot-firefox | 20 |
1 files changed, 20 insertions, 0 deletions
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 - |