aboutsummaryrefslogtreecommitdiff
path: root/rootfs
diff options
context:
space:
mode:
Diffstat (limited to 'rootfs')
-rwxr-xr-xrootfs/etc/init.d/rcS3
-rw-r--r--rootfs/etc/inittab7
-rw-r--r--rootfs/etc/passwd0
-rw-r--r--rootfs/etc/profile1
-rw-r--r--rootfs/etc/shadow0
5 files changed, 7 insertions, 4 deletions
diff --git a/rootfs/etc/init.d/rcS b/rootfs/etc/init.d/rcS
index fc699e4..be9ca09 100755
--- a/rootfs/etc/init.d/rcS
+++ b/rootfs/etc/init.d/rcS
@@ -1,2 +1,5 @@
#!/bin/sh
+# mount all drives in /etc/fstab
/bin/mount -a
+# set the system hostname
+/bin/hostname -F /etc/hostname
diff --git a/rootfs/etc/inittab b/rootfs/etc/inittab
index 5f4a5fa..805a39d 100644
--- a/rootfs/etc/inittab
+++ b/rootfs/etc/inittab
@@ -1,9 +1,8 @@
# /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
+# put a shell on ttyS0 (serial header on board)
+ttyS0::respawn:/bin/sh
+
diff --git a/rootfs/etc/passwd b/rootfs/etc/passwd
deleted file mode 100644
index e69de29..0000000
--- a/rootfs/etc/passwd
+++ /dev/null
diff --git a/rootfs/etc/profile b/rootfs/etc/profile
index 3c2be89..557b21a 100644
--- a/rootfs/etc/profile
+++ b/rootfs/etc/profile
@@ -1,4 +1,5 @@
# /etc/profile
umask 022
export PATH="$PATH:/usr/bin"
+cd "$HOME"
diff --git a/rootfs/etc/shadow b/rootfs/etc/shadow
deleted file mode 100644
index e69de29..0000000
--- a/rootfs/etc/shadow
+++ /dev/null