From b854e8abb7e1ff0b43c9f99e9b641895e4d6c148 Mon Sep 17 00:00:00 2001 From: lonkaars Date: Mon, 5 Feb 2024 19:13:08 +0100 Subject: WIP busybox --- rootfs/etc/fstab | 1 + rootfs/etc/hostname | 1 + rootfs/etc/hosts | 1 + rootfs/etc/init.d/rcS | 2 ++ rootfs/etc/inittab | 9 +++++++++ rootfs/etc/passwd | 0 rootfs/etc/profile | 4 ++++ rootfs/etc/shadow | 0 8 files changed, 18 insertions(+) create mode 100644 rootfs/etc/fstab create mode 100644 rootfs/etc/hostname create mode 100644 rootfs/etc/hosts create mode 100755 rootfs/etc/init.d/rcS create mode 100644 rootfs/etc/inittab create mode 100644 rootfs/etc/passwd create mode 100644 rootfs/etc/profile create mode 100644 rootfs/etc/shadow (limited to 'rootfs') diff --git a/rootfs/etc/fstab b/rootfs/etc/fstab new file mode 100644 index 0000000..e84b78a --- /dev/null +++ b/rootfs/etc/fstab @@ -0,0 +1 @@ +proc /proc proc defaults 0 0 diff --git a/rootfs/etc/hostname b/rootfs/etc/hostname new file mode 100644 index 0000000..cf7c0fc --- /dev/null +++ b/rootfs/etc/hostname @@ -0,0 +1 @@ +gaming diff --git a/rootfs/etc/hosts b/rootfs/etc/hosts new file mode 100644 index 0000000..2601d5c --- /dev/null +++ b/rootfs/etc/hosts @@ -0,0 +1 @@ +127.0.0.1 localhost gaming diff --git a/rootfs/etc/init.d/rcS b/rootfs/etc/init.d/rcS new file mode 100755 index 0000000..fc699e4 --- /dev/null +++ b/rootfs/etc/init.d/rcS @@ -0,0 +1,2 @@ +#!/bin/sh +/bin/mount -a diff --git a/rootfs/etc/inittab b/rootfs/etc/inittab new file mode 100644 index 0000000..5f4a5fa --- /dev/null +++ b/rootfs/etc/inittab @@ -0,0 +1,9 @@ +# /etc/inittab init(8) + +::sysinit:/etc/init.d/rcS +::shutdown:/bin/umount -a -r +::restart:/sbin/init + +# this could be really unsafe in production +::respawn:/sbin/getty -L ttyS0 115200 vt100 +ttyS0::respawn:-/bin/login -f root diff --git a/rootfs/etc/passwd b/rootfs/etc/passwd new file mode 100644 index 0000000..e69de29 diff --git a/rootfs/etc/profile b/rootfs/etc/profile new file mode 100644 index 0000000..3c2be89 --- /dev/null +++ b/rootfs/etc/profile @@ -0,0 +1,4 @@ +# /etc/profile +umask 022 +export PATH="$PATH:/usr/bin" + diff --git a/rootfs/etc/shadow b/rootfs/etc/shadow new file mode 100644 index 0000000..e69de29 -- cgit v1.2.3