From 52be99d8c0862ff87db9a4f9ccec1ac4b5f7caed Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Fri, 2 Sep 2022 09:18:52 +0200 Subject: added a quite unsorted first version of a floppy boot loader --- floppy/ramdisk/etc/init.d/rc | 8 ++++++++ floppy/ramdisk/etc/inittab | 6 ++++++ floppy/ramdisk/etc/modules.conf | 1 + floppy/ramdisk/etc/mtab | 1 + floppy/ramdisk/etc/resolv.conf | 1 + 5 files changed, 17 insertions(+) create mode 100755 floppy/ramdisk/etc/init.d/rc create mode 100644 floppy/ramdisk/etc/inittab create mode 100644 floppy/ramdisk/etc/modules.conf create mode 120000 floppy/ramdisk/etc/mtab create mode 100644 floppy/ramdisk/etc/resolv.conf (limited to 'floppy/ramdisk/etc') diff --git a/floppy/ramdisk/etc/init.d/rc b/floppy/ramdisk/etc/init.d/rc new file mode 100755 index 0000000..c923778 --- /dev/null +++ b/floppy/ramdisk/etc/init.d/rc @@ -0,0 +1,8 @@ +#!/bin/sh + +echo "Starting RAMDisk.." +mount -t proc none /proc +mount -t sysfs none /sys +mount -t devtmpfs none /dev +mkdir /dev/pts +mount -t devpts none /dev/pts diff --git a/floppy/ramdisk/etc/inittab b/floppy/ramdisk/etc/inittab new file mode 100644 index 0000000..30228cf --- /dev/null +++ b/floppy/ramdisk/etc/inittab @@ -0,0 +1,6 @@ +::sysinit:/etc/init.d/rc +::askfirst:-/bin/cttyhack /bin/sh +::restart:/sbin/init +::ctrlaltdel:/sbin/reboot +::shutdown:/bin/umount -a +tty1::askfirst:-/bin/sh diff --git a/floppy/ramdisk/etc/modules.conf b/floppy/ramdisk/etc/modules.conf new file mode 100644 index 0000000..df66d3f --- /dev/null +++ b/floppy/ramdisk/etc/modules.conf @@ -0,0 +1 @@ +options ne io=0x300 irq=10 diff --git a/floppy/ramdisk/etc/mtab b/floppy/ramdisk/etc/mtab new file mode 120000 index 0000000..5c4677a --- /dev/null +++ b/floppy/ramdisk/etc/mtab @@ -0,0 +1 @@ +../proc/self/mounts \ No newline at end of file diff --git a/floppy/ramdisk/etc/resolv.conf b/floppy/ramdisk/etc/resolv.conf new file mode 100644 index 0000000..1ea217a --- /dev/null +++ b/floppy/ramdisk/etc/resolv.conf @@ -0,0 +1 @@ +nameserver 192.168.1.1 -- cgit v1.2.3-70-g09d2