Added Thomas Perl's patches to Fremantle scripts
[easy-deb-chroot] / fremantle / easy-deb-chroot / src / sbin / debian
index c3a8eb2..01659da 100755 (executable)
@@ -3,7 +3,7 @@
 # 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
+# By Alan M Bruce (qole) with help from Benson Mitchell and Thomas Perl
 #
 # GPL licensed; keep code free!
 
@@ -18,34 +18,34 @@ if [ -f "/home/user/.chroot" ] ; then
 . /home/user/.chroot
 
 else
-  echo "No ~/.chroot file."
+  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"
+  echo "No chroot dir specified; using $CHROOT" >/dev/stderr
 else
-  echo "Chroot dir specified: $CHROOT"
+  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."
+  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
+      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"
+  echo "$IMGFILE specified in ~/.chroot" >/dev/stderr
 fi
 
 #