fs9 : sur la base de fs8 avec exécution automatique d'un script de l'hote au démarrage

Noyaux/linux-2.4.24-wifi/linux ubd0=cow,SysFich/fs8/root_fs8
    

Dans l'UML :
installation de at

mount none /mnt/host/ -t hostfs
cp /mnt/host/home/galtier/UML/RPMs/FedoraCore2/at-3.1.8-53.i386.rpm .
rpm -ivh at-3.1.8-53.i386.rpm 
rm at-3.1.8-53.i386.rpm 
au démarrage, lancement d'un script qui monte le système de fichiers de l'hote, y récupère le script contenant les commandes à exécuter et le lance :
cd /etc/rc.d
emacs gogetcmds
--- y mettre -------------------
mount none /mnt/host/ -t hostfs
cp /mnt/host/home/galtier/UML/commandsUML .
chmod +x commandsUML
at now -f commandsUML
--------------------------------
chmod +x gogetcmds
emacs rc.local
--- y ajouter ------------------
at now -f gogetcmds
--------------------------------
et fin :
shutdown -h now

Finalisation :

uml_moo cow root_fs9
rm cow
mkdir SysFich/fs9
mv root_fs9 SysFich/fs9
    

Cliquez ici pour télécharger mon root_fs9.

Exemple de fichier de commandes :

#!/bin/bash
modprobe hostap_uml
iwconfig wlan0 mode ad-hoc

export umid=`cat /proc/cmdline | sed -e "s/\(umid=[^ ]\)/avant|\1|/" | sed -e "s/[^|]*|umid=\([^|]\).*/\1/"`


if [ "$umid" = "A" ]
then 
        ifconfig wlan0 192.168.100.1
elseif [ "$umid" = "B" ]
        ifconfig wlan0 192.168.100.2
elseif [ "$umid" = "C" ]
        ifconfig wlan0 192.168.100.3
elseif [ "$umid" = "D" ]
        ifconfig wlan0 192.168.100.4
elseif [ "$umid" = "E" ]
        ifconfig wlan0 192.168.100.5
elseif [ "$umid" = "F" ]
        ifconfig wlan0 192.168.100.6
elseif [ "$umid" = "G" ]
        ifconfig wlan0 192.168.100.7
elseif [ "$umid" = "H" ]
        ifconfig wlan0 192.168.100.8
else
        echo inconnu
fi