X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=fremantle%2Feasy-deb-chroot%2F.py2deb_build_folder%2Feasy-deb-chroot%2Fsrc%2Fsbin%2Fdebian;fp=fremantle%2Feasy-deb-chroot%2F.py2deb_build_folder%2Feasy-deb-chroot%2Fsrc%2Fsbin%2Fdebian;h=0000000000000000000000000000000000000000;hb=cf5b1982fae5ccc977c9c888a5277dcf3310c2bc;hp=01659da0414cb4f89c16f1c730fcd98738032c94;hpb=c14304cbea3cd61c09148ed27bcdd9a9b07a7900;p=easy-deb-chroot diff --git a/fremantle/easy-deb-chroot/.py2deb_build_folder/easy-deb-chroot/src/sbin/debian b/fremantle/easy-deb-chroot/.py2deb_build_folder/easy-deb-chroot/src/sbin/debian deleted file mode 100755 index 01659da..0000000 --- a/fremantle/easy-deb-chroot/.py2deb_build_folder/easy-deb-chroot/src/sbin/debian +++ /dev/null @@ -1,72 +0,0 @@ -#!/bin/sh -# Sets up (if necessary) for chroot into a Debian environment. -# Expects root privileges, does not drop them. -# Look to /usr/bin/debbie for a friendly wrapper. - -# By Alan M Bruce (qole) with help from Benson Mitchell and Thomas Perl -# -# GPL licensed; keep code free! - -if [ "`whoami`" != "root" ] ; then - echo "please run me as root!" - exit 9 -fi - -#Pull in the config, if possible... -if [ -f "/home/user/.chroot" ] ; then - -. /home/user/.chroot - -else - echo "No ~/.chroot file." >/dev/stderr -fi - -#This comes from the config file... If not, fall back on '/debian' -if [ "x$CHROOT" = "x" ] ; then - CHROOT=/debian - echo "No chroot dir specified; using $CHROOT" >/dev/stderr -else - echo "Chroot dir specified: $CHROOT" >/dev/stderr -fi - -#This comes from the config. If not, search for debian*.img.ext2 -if [ "x$IMGFILE" = "x" ] ; then - echo "No image file or partition specified." >/dev/stderr - IMGMMC="`ls -1 /home/user/MyDocs/debian*.img* /media/mmc1/debian*.img* | head -1`" - if [ "x$IMGMMC" != x ] ; then - IMGFILE="$IMGMMC" - else - MSG1=`printf "ERROR!\n\nYou have no debian.img.ext2 file on your memory cards.\n\nPlease use the Debian Image Installer in Extras."` - if [ ! -f "/usr/bin/gxmessage" ] ; then - echo $MSG1 >/dev/stderr - else - gxmessage -center -alignbuttons center -buttons GTK_STOCK_OK:0 -geometry 680x250 -title "MISSING DISK IMAGE" "$MSG1" - fi - exit 9 - fi -else - echo "$IMGFILE specified in ~/.chroot" >/dev/stderr -fi - -# -#Make the temp dir bigger for OpenOffice etc. -# -#This comes from the config file... -#If not, fall back to a 6MB /tmp dir -# - -[ "x$TMPSIZE" != x ] || TMPSIZE=6M -mount -o remount,size=$TMPSIZE /tmp - -#Messy hack to make tap-and-hold work with GTK apps. -export GTK_MODULES=libgtkstylus.so - -#Some OpenOffice environment variables -export SAL_USE_VCLPLUGIN="gtk" -export OOO_FORCE_DESKTOP="gnome" -export SAL_NOOPENGL="true" -export OOO_DISABLE_RECOVERY="true" -export SAL_DISABLE_SYNCHRONOUS_PRINTER_DETECTION="true" -#export SAL_DISABLE_CUPS="true" - -qchroot $IMGFILE $CHROOT "$@"