forked from openwrt/openwrt
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
x86,armsr: interpolate GRUB_SERIAL into /etc/inittab
Some platforms have their console on other ports than ttyS0, so allow the developer to tailor this on bespoke platform images. Fixes issue openwrt#13401. Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
- Loading branch information
1 parent
c44b1d4
commit 486502a
Showing
4 changed files
with
22 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
GRUB_SERIAL:=$(call qstrip,$(CONFIG_GRUB_SERIAL)) | ||
ifeq ($(GRUB_SERIAL),) | ||
GRUB_SERIAL:=ttyS0 | ||
endif | ||
|
||
ifneq ($(GRUB_SERIAL),) | ||
define Package/base-files/install-target | ||
$(SED) "s#@GRUB_SERIAL@#$(GRUB_SERIAL)#" $(1)/etc/inittab | ||
endef | ||
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
GRUB_SERIAL:=$(call qstrip,$(CONFIG_GRUB_SERIAL)) | ||
ifeq ($(GRUB_SERIAL),) | ||
GRUB_SERIAL:=ttyS0 | ||
endif | ||
|
||
ifneq ($(GRUB_SERIAL),) | ||
define Package/base-files/install-target | ||
$(SED) "s#@GRUB_SERIAL@#$(GRUB_SERIAL)#" $(1)/etc/inittab | ||
endef | ||
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
::sysinit:/etc/init.d/rcS S boot | ||
::shutdown:/etc/init.d/rcS K shutdown | ||
ttyS0::askfirst:/usr/libexec/login.sh | ||
@GRUB_SERIAL@::askfirst:/usr/libexec/login.sh | ||
hvc0::askfirst:/usr/libexec/login.sh | ||
tty1::askfirst:/usr/libexec/login.sh |