X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=fremantle%2Feasy-deb-chroot%2F.py2deb_build_folder%2Feasy-deb-chroot%2Fsrc%2Fusr%2Fbin%2Fdebbie;fp=fremantle%2Feasy-deb-chroot%2F.py2deb_build_folder%2Feasy-deb-chroot%2Fsrc%2Fusr%2Fbin%2Fdebbie;h=0000000000000000000000000000000000000000;hb=cf5b1982fae5ccc977c9c888a5277dcf3310c2bc;hp=9726148d8db08aa2eedc81872015277969f9ef3c;hpb=c14304cbea3cd61c09148ed27bcdd9a9b07a7900;p=easy-deb-chroot diff --git a/fremantle/easy-deb-chroot/.py2deb_build_folder/easy-deb-chroot/src/usr/bin/debbie b/fremantle/easy-deb-chroot/.py2deb_build_folder/easy-deb-chroot/src/usr/bin/debbie deleted file mode 100755 index 9726148..0000000 --- a/fremantle/easy-deb-chroot/.py2deb_build_folder/easy-deb-chroot/src/usr/bin/debbie +++ /dev/null @@ -1,45 +0,0 @@ -#!/bin/sh -# Chroots to Debian and runs a shell, or any command-line as non-root. - -# By Alan M Bruce (qole), Benson Mitchell and Thomas Perl -# -# GPL licensed; keep code free! - -if [ "`whoami`" = "root" ] ; then - echo "please don't run me as root!" - exit 9 -fi - -#Pull in the config, if possible... -[ -f /home/user/.chroot ] && . /home/user/.chroot - -#This comes from the config file... If not, fall back on 'user' -#[ "x$DEBUSER" != x ] || DEBUSER=user -DEBUSER=$USER - -CHROOTUSER=$DEBUSER - -#If display's not given, go to primary display. If it's set, let's not -#mangle it to allow convenient use of USB VGA out, or multiple Xomaps. -[ "x$DISPLAY" != x ] || export DISPLAY=:0.0 - -#This enables long-hold-to-right-click in all GTK+ apps. -#Maybe we'd be better to add libgtkstylus.so anyway, but for now, we'll -#just leave it if they've got any non-empty GTK_MODULES -[ "x$GTK_MODULES" != x ] || export GTK_MODULES=libgtkstylus.so - -#Note use of su below, so no Debian-side script req'd to drop privileges. -#With no args, use a shell; su will get the right one, with no -c -#With args, just run them as $DEBUSER. - -if [ $# = 0 ] ; then - echo Starting Debian shell... >/dev/stderr - sudo /sbin/debian su $DEBUSER -else - # Workaround to allow "debbie" to be used as login shell - if [ "$1" == "-c" ]; then - shift - fi - echo Starting Debian $* >/dev/stderr - sudo /sbin/debian su $DEBUSER -c "$*" -fi