Hi, I'm trying again to modify tomsrtbt-cd.img;o).
I succeed in getting french keyboard automatically: # mount -o loop toms2.img /mnt/disk/ # cp /mnt/disk/rc.custom.gz ./ # gzip -d rc.custom.gz # vi rc.custom I don't understand the way /mnt/disk/settings.s and /mnt/disk/rc.custom.gz are used. The modifications I did here didn't work. It works when I modify settings.s and rc.custom from initrd.bz2: # cp /mnt/disk/initrd.bz2 ./ # bzip2 -d initrd.bz2 # mount -o loop initrd /mnt/initrd # vi /mnt/initrd/settings.s # cp /mnt/initrd/rc.custom.gz ./ # gzip -d rc.custom.gz # vi rc.custom # gzip rc.custom # cp rc.custom.gz /mnt/initrd/ # umount /mnt/initrd # cat initrd | bzip2 -9 > initrd.bz2 # cp -f initrd.bz2 /mnt/disk/ # umount /mnt/disk/ Here are modifications I did to rc.custom: ======================== ... cat /lib/key.lst #read -p " #Select keyboard, ENTER for default (15 seconds): " J</dev/tty1>/dev/tty1 #[ "$J" ]&&loadkmap</lib/key/$J.map loadkmap</lib/key/fr.map rm P X #(sleep 15;kill $!;rm P)2>$NU& (sleep 3;kill $!;rm P)2>$NU& ... ======================== But I wanted to add two scripts. I tryed to put them in /mnt/initrd/tmp I suppose it is an error because in rc.custom there is: ======================== mkfs.minix /dev/ram3 mount /dev/ram3 /tmp ======================== I tryed to put them in /mnt/initrd/bin too. It doesn't work. I get: ========================= init started: Busybox v0.61.pre... Bummer, could not run '/etc/rc.S': Exec format ettor Bummer, could not run '/etc/rc.S': Exec format ettor _setutent: Can't open utmp file: No such file or directory _setutent: Can't open utmp file: No such file or directory _setutent: Can't open utmp file: No such file or directory ========================= Where could I add my scripts? These are interactive scripts. If it isn't a good idea (maybe do I have too much to learn;o), could you add something to launch an autorun script at root of CD we boot from? Thank you for any suggestion. 'hope you'll understand/forgive the froggy way I write english. -- Stephane Boireau Personne Ressource TICE du Coll�ge Le Hameau � Bernay (27)
