ReelBox /boot/etc/rcS
Aus ReelBox Maniacs
Ort: /boot/etc/rcS auf dem ISO zum Flashen
#!/bin/sh # # ReelBox's first part of boot in initrd mount -t proc proc /proc # # load modules needed insmod /lib/modules/`uname -r`/kernel/misc/tffs.ko insmod /lib/modules/`uname -r`/kernel/fs/ext2/ext2.ko # # mount root filesystem mount -t cramfs /dev/tffsa3 /mnt # # mount filesystem containing /etc fsck.minix -a /dev/tffsa2 mount -t minix -o ro,noatime,nodiratime /dev/tffsa2 /mnt/etc cd /mnt # # forget about /boot, setup new root directory and run rc$ in new /etc pivot_root . mnt/initrd #umount /initrd/proc exec chroot . sh -c 'exec /etc/init.d/rcS' <dev/console >dev/console 2>&1

