[Udpcast] predialog doesn't run? eject trouble!

Stephane steph2607 at tiscali.fr
Fri Jan 4 16:36:52 CET 2008


I get:
    *  Udpcast command line version: udpcast-20070602-1.i586.rpm
    * Udpcast boot disk generator: udpcast-mkimage-20071228-1.i586.rpm
    * Udpcast Linux kernel for use with boot disk generator: 
and build DEB packages using alien (DEB version at 
http://udpcast.linux.lu/source.html require libc6 higher than I have on 

I build an image including my scripts.
And predialog doesn't run.
(it worked in previous version)
If I launch my predialog manually (ALT+F2,...), it works.

My predialog is used to get udpcast parameters from boot and 
generate /udpcfg.txt before udpc_dialog is launched.

My predialog was:

modprobe ide-cd
/bin/udpc_dialog init
( cd /proc/ide ; for i in hd? ; do if fgrep -q cdrom $i/media ; then 
eject /dev/$i ; echo ejecting /dev/$i ; fi ; done)
sh /bin/udpcfg_txt.sh

But there is an error:
When launching
	cd /proc/ide
I see
	/proc/ide: bad directory
And script stops.

If I comment line used to eject CD, it is OK.
My script runs.

Maybe it would be possible to do something 
using /proc/sys/dev/cdrom/info or /proc/sys/dev/cdrom/autoeject

# grep "drive name" /proc/sys/dev/cdrom/info
drive name:                   hdc

# grep "drive name" /proc/sys/dev/cdrom/info | sed -e "s/ //g"

Troubles with redirections?

I would like to do something like:
# grep "drive name" /proc/sys/dev/cdrom/info | tr "\t" " " | sed -e "s/ //g" | 
cut -d ":" -f2


More information about the Udpcast mailing list