Stephane Boireau wrote:
Hi,
====================== I already sent this message, but I get troubles using the other email... ======================
I don't succeed in giving two options through apend boot cmdline. Here is my cmdline:
label u1auto kernel vmlu26 append initrd=udprd root=01:00 persoparams=oui lang=FR kbmap=FR dhcp=yes compr=lzop port=9002 umode=snd disk=/dev/hda1 auto_reboot=always enableDiskmodule=yes diskmodule=AUTO netmodule=AUTO udpcparam=--max-wait=300--min-receivers=2
A script is launched using predialog. It writes the /udpcfg.txt file.
With the above cmdline, I get:
udpsender -p lzop --file /dev/hda1 -P 9002 -i eth0 --max-wait=300--min-receiver=2
Yes, that's what you typed... see above.
instead of
udpsender -p lzop --file /dev/hda1 -P 9002 -i eth0 --max-wait=300 --min-receiver=2
And it doesn't work.
Makes sense.
===========================
I've tried:
label u1auto kernel vmlu26 append initrd=udprd root=01:00 persoparams=oui lang=FR kbmap=FR dhcp=yes compr=lzop port=9002 umode=snd disk=/dev/hda1 auto_reboot=always enableDiskmodule=yes diskmodule=AUTO netmodule=AUTO udpcparam=--max-wait=300|--min-receivers=2
^ You need a space there. Try putting the parameter between quotes to avoid it being interpreted as two parameters: udpcparam="--max-wait=300 --min-receivers=2"
And my predialog script does:
udpcparam=`echo "$udpcparam" | sed -e "s/|/ /g"` echo "udpcparam=$udpcparam" >> /udpcfg.txt
Why don't you put this directly into udpcfg.txt?
But it doesn't work. /udpcfg.txt contains ... umode=snd udpcparam=--max-wait=300 --min-receivers=2
correct (no need for quotes here, as the different parameters are line-separated)
And I get
Udp-sender 2007-12-28 --min-receivers=2: not found Using mcast address 232.168.52.210 Compressed UDP sender for /dev/hda1 at 192.168.52.210 on eth0 Broadcasting control to 192.168.52.255
and it fails.
Works for me (just tried it out by editing the SYSLINUX.CFG on a floppy image)
How could I get both options working?
I did those tests using 2.6.23 kernel and udpcast-mkimage-20080107-1.i586, udpcast-20070602-1.i586 I'll try again using udpcast-20071228-1.i586 udpcast-mkimage-20080911-1.i586 kernel-udpcast-2.6.26.3-1.i586
Regards.
Stephane
Regards,
Alain