aboutsummaryrefslogtreecommitdiff
path: root/rootfs/etc/inittab
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2024-02-06 10:46:39 +0100
committerlonkaars <loek@pipeframe.xyz>2024-02-06 10:46:39 +0100
commitae327cc50fd9d3e59e9f60088243adfc69cb312e (patch)
tree4efe5520ba87a604cf35e3d5c00d196e214bf1ae /rootfs/etc/inittab
parentb854e8abb7e1ff0b43c9f99e9b641895e4d6c148 (diff)
fix busybox booting into root shellweek3
Diffstat (limited to 'rootfs/etc/inittab')
-rw-r--r--rootfs/etc/inittab7
1 files changed, 3 insertions, 4 deletions
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
+