[Udpcast] udpcparam=autostart 12

Stephane steph2607 at tiscali.fr
Thu Oct 12 22:02:14 CEST 2006


Hi,

I build a script to get parameters from isolinux boot and rewrite udpcfg.txt
I can put only one kernel and one initrd on my multiboot-cd and preconfigure 
choices in isolinux.cfg

See udpcfg_txt.sh

It works fine.

My predialog contains:
=================
#!/bin/sh

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
=================


And I buid image with:
=================
/usr/lib/udpcast/makeImage_2 
-k /usr/lib/udpcast/kernel/vmlinuz-2.6.17.13udpcast --fullbox 
--prescript /usr/lib/udpcast/perso_bin/noblank 
--predialog /usr/lib/udpcast/perso_bin/predialog 
--postscript /usr/lib/udpcast/perso_bin/date_fin.sh -c udpfr_20061011b.img -C 
fr.conf
=================
makeImage_2 is makeImage modified to add a few scripts including udpcfg_txt.sh



I would like to know the way I could send '--autostart 5' from isolinux.cfg so 

I've got a not complete keyboard (fr.ktl) during isolinux.
I do a little transformation to use . instead of - and ? instead of space.

My isolinux.cfg contains:
========================
label u1
    kernel linux/udpcast/vmlu26
    append initrd=linux/udpcast/udprd root=01:00 persoparams=oui lang=FR 
kbmap=FR dhcp=yes compr=lzop port=9002 umode=snd

label u2
    kernel linux/udpcast/vmlu26
    append initrd=linux/udpcast/udprd root=01:00 persoparams=oui lang=FR 
kbmap=FR dhcp=yes compr=lzop port=9002 umode=rcv
========================


I send:
        u1 netmodule=AUTO enableDiskmodule=no disk=/dev/hda 
udpcparam=..autostart?1

But I get this message:
Extra argument "..autostart?1" ignored
Udp-sender 2006-09-15
Using mcast adress...

It seems, udpcparam aren't read from /udpcfg.txt
How could I make it work?

Thank you very much!
-- 
Stéphane.

PS:
My udpcfg_txt.sh:
======================================
#!/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
fi

#echo "$COLTXT"
#echo "Tentative d'ejection du CD..."
#echo "$COLCMD"
#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)

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

# u1 netmodule=AUTO enableDiskmodule=no disk=/dev/hda udpcparam=..autostart?12
======================================




More information about the Udpcast mailing list