[Udpcast] udpcparam=autostart 12

Stephane steph2607 at tiscali.fr
Mon Oct 16 11:16:52 CEST 2006


Hi,

I build a fr.ktl with more keys enabled.
I send '--max-wait 600' option from isolinux.cfg this way:
	udpcparam=--max-wait_600
and my udpcfg_txt.sh rewrites it this way:
	echo "udpcparam=`echo $udpcparam | tr '_' ' '`" >> /udpcfg.txt
so that I get 
	udpcparam=--max-wait 600
in /udpcfg.txt

But it doesn't work.
I don't know why.
I get what I would get if I send
	udp-sender --help
but I can't see the beginning of this display, and I don't know what it 
doesn't like.

Do you know what I could do?

Thank you very much!
-- 
Stephane.

PS:
Here are my isolinux.cfg choices:
=====================
label u1t
    kernel vmlu26
    append initrd=udprd4 root=01:00 persoparams=oui lang=FR kbmap=FR 
netmodule=AUTO enableDiskmodule=yes diskmodule=BusLogic disk=/dev/sda 
dhcp=yes compr=lzop port=9002 umode=snd udpcparam=--max-wait_600

label u2t
    kernel vmlu26
    append initrd=udprd4 root=01:00 persoparams=oui lang=FR kbmap=FR 
netmodule=AUTO enableDiskmodule=yes diskmodule=BusLogic disk=/dev/sda 
dhcp=yes compr=lzop port=9002 umode=rcv udpcparam=--nokbd
=====================


And here is my udpcfg_txt.sh run as predialog:
=====================
#!/bin/sh

# Script de recuperation de parametres de l'isolinux.cfg
# pour renseigner le fichier udpcfg.txt avant lancement de udpc_dialog
# L'objectif est d'eviter le stockage de 3 initrd pour le mode standard,
# le mode preselectionne en emission
# et le mode preselectionne en reception.
# Auteur: Stephane Boireau
# Derniere modification: 11/10/2006

#Couleurs
COLTITRE='\033[1;35m'
# Rose
COLPARTIE='\033[1;34m'
# Bleu

COLTXT='\033[0;37m'
# Gris
COLCHOIX='\033[1;33m'
# Jaune
COLDEFAUT='\033[0;33m'
# Brun-jaune
COLSAISIE='\033[1;32m'
# Vert

COLCMD='\033[1;37m'
# Blanc

COLERREUR='\033[1;31m'
# Rouge
COLINFO='\033[0;36m'
# Cyan



echo -e "$COLTITRE"
echo "********************"
echo "* Preconfiguration *"
echo "********************"

echo -e "$COLTXT"
echo "Recuperation des parametres d'isolinux..."
echo -e "$COLCMD"
# On devrait recuperer des choses comme:
#	initrd=linux/udpcast/udprd root=01:00
# Et eventuellement en plus les autres parametres ajoutes à 'append'.
cat /proc/cmdline
sleep 1
sh /proc/cmdline

if [ "$persoparams" = "oui" ]; then
	echo -e "$COLTXT"
	echo "Regeneration de l'udpcfg.txt"
	#echo -e "$COLCMD"
	echo "auto=yes" > /udpcfg.txt

	if [ "$lang" = "" ]; then
		echo "lang=FR" >> /udpcfg.txt
	else
		echo "lang=$lang" >> /udpcfg.txt
	fi

	if [ "$kbmap" = "" ]; then
		echo "kbmap=FR" >> /udpcfg.txt
	else
		echo "kbmap=$kbmap" >> /udpcfg.txt
	fi

	if [ "$netmodule" = "" ]; then
		echo "Pas de module reseau predefini."
	else
		echo "netmodule=$netmodule" >> /udpcfg.txt
		echo "netmodparm=$netmodparm" >> /udpcfg.txt
	fi

	if [ "$dhcp" = "" ]; then
		#echo -e "$COLTXT"
		echo "Pas de preselection du mode DHCP."
	else
		echo "dhcp=$dhcp" >> /udpcfg.txt
	fi

	if [ "$enableDiskmodule" = "yes" ]; then
		echo "enableDiskmodule=yes" >> /udpcfg.txt
		echo "diskmodule=$diskmodule" >> /udpcfg.txt
		echo "diskmodparm=$diskmodparm" >> /udpcfg.txt
	fi

	if [ "$port" = "" ]; then
		#echo -e "$COLTXT"
		echo "Pas de port defini."
	else
		echo "port=$port" >> /udpcfg.txt
	fi

	if [ "$compr" = "" ]; then
		#echo -e "$COLTXT"
		echo "Pas de niveau de compression defini."
	else
		echo "compr=$compr" >> /udpcfg.txt
	fi

	if [ "$disk" = "" ]; then
		#echo -e "$COLTXT"
		echo "Pas de disque dur preselectionne."
	else
		echo "disk=$disk" >> /udpcfg.txt
	fi

	echo "mode=0" >> /udpcfg.txt

	echo "umode=$umode" >> /udpcfg.txt
	#echo "udpcparam=$udpcparam" >> /udpcfg.txt
	#echo "udpcparam=`echo $udpcparam | tr '?' ' '  | tr '.' '-'`" >> /udpcfg.txt
	#echo "udpcparam=$udpcparam" >> /udpcfg.txt
	echo "udpcparam=`echo $udpcparam | tr '_' ' '`" >> /udpcfg.txt
fi

echo -e "$COLTITRE"
echo "Fin"
#read PAUSE
datedebut=`date "+%Y-%m-%d %H:%M:%S"`
echo "Debut: $datedebut" > /tmp/dates.txt
sleep 1

=====================




More information about the Udpcast mailing list