tomsrtbt-cd
Stephane Boireau <[email protected]> Sat, 6 Mar 2004 11:48:00 +0100
| Newsgroups | gmane.linux.tomsrtbt |
|---|---|
| Message-ID | <[email protected]> |
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.g= z =20 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: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D ... 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& ... =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D 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: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D mkfs.minix /dev/ram3 mount /dev/ram3 /tmp =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D I tryed to put them in /mnt/initrd/bin too. It doesn't work. I get: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D 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 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D 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=20 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. --=20 Stephane Boireau Personne Ressource TICE du Coll=E8ge Le Hameau =E0 Bernay (27)