[Buildroot] [PATCH 1/1] skeleton: add default login port to /etc/securetty
Peter Korsgaard
jacmet at uclibc.org
Sun May 26 21:00:25 UTC 2013
>>>>> "Spenser" == Spenser Gilliland <spenser at gillilanding.com> writes:
Spenser> From: Tzu-Jung Lee <tjlee at ambarella.com>
Spenser> We ran into a "Login incorrect" problem when running the same
Spenser> rootfs image across platforms with different loging ports
Spenser> ttyS0/1/2/3.
Spenser> Simply assignning "console" to BR2_TARGET_GENERIC_GETTY_PORT,
Spenser> which in turn modifies the /etc/inittab, is not enough because
Spenser> the "console" device was missing in the /etc/securetty.
Spenser> While current securetty has enumerated a lot of ttys, this
Spenser> patch should save some efforts to enumerate more.
Spenser> Signed-off-by: Tzu-Jung Lee <tjlee at ambarella.com>
Spenser> Signed-off-by: Spenser Gilliland <spenser at gillilanding.com>
Spenser> Acked-by: Arnout Vandecappelle (Essensium/Mind) <arnout at mind.be>
Spenser> ---
Spenser> +target-generic-securetty:
Spenser> + grep -q ^$(TARGET_GENERIC_GETTY)$$ $(TARGET_DIR)/etc/securetty || \
Spenser> + echo $(TARGET_GENERIC_GETTY) >> $(TARGET_DIR)/etc/securetty
I prefer to stick the TARGET_GENERIC_GETTY value inside single quotes to
ensure the shell won't get confused.
Committed to next with that corrected, thanks.
--
Bye, Peter Korsgaard
More information about the buildroot
mailing list