File tree Expand file tree Collapse file tree 3 files changed +15
-1
lines changed Expand file tree Collapse file tree 3 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -311,6 +311,11 @@ config BR2_TARGET_GENERIC_GETTY_OPTIONS
311311endmenu
312312endif
313313
314+ config BR2_TARGET_ASKFIRST_SHELL
315+ bool "Start an \"askfirst\" shell on the console (whatever that may be)"
316+ depends on BR2_INIT_BUSYBOX
317+ depends on !BR2_TARGET_GENERIC_GETTY
318+
314319config BR2_TARGET_GENERIC_REMOUNT_ROOTFS_RW
315320 bool "remount root filesystem read-write during boot"
316321 default y
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ null::sysinit:/bin/hostname -F /etc/hostname
2424::sysinit:/etc/init.d/rcS
2525
2626# Start an "askfirst" shell on the console (whatever that may be)
27- ::askfirst:-/bin/sh
27+ # ::askfirst:-/bin/sh # ASKFIRST_SHELL
2828
2929# Put a getty on the serial port
3030#ttyS0::respawn:/sbin/getty -L ttyS0 115200 vt100 # GENERIC_SERIAL
Original file line number Diff line number Diff line change 7676TARGET_FINALIZE_HOOKS += SYSTEM_GETTY
7777endif
7878
79+ ifeq ($(BR2_TARGET_ASKFIRST_SHELL ) ,y)
80+ # Add askfirst shell to busybox inittab
81+ define SYSTEM_ASKFIRST
82+ $(SED ) '/# ASKFIRST_SHELL$$/s~^.*#~::askfirst:-/bin/sh #~' \
83+ $(TARGET_DIR)/etc/inittab
84+ endef
85+ TARGET_FINALIZE_HOOKS += SYSTEM_ASKFIRST
86+ endif
87+
7988ifeq ($(BR2_TARGET_GENERIC_REMOUNT_ROOTFS_RW ) ,y)
8089# Find commented line, if any, and remove leading '#'s
8190define SYSTEM_REMOUNT_RW
You can’t perform that action at this time.
0 commit comments