From patchwork Fri Sep 6 15:26:48 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Assaf Inbal X-Patchwork-Id: 273222 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from fraxinus.osuosl.org (fraxinus.osuosl.org [140.211.166.137]) by ozlabs.org (Postfix) with ESMTP id 2E3AD2C0131 for ; Sat, 7 Sep 2013 01:28:07 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 440728B77C; Fri, 6 Sep 2013 15:28:06 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id KygLEyvq_hSo; Fri, 6 Sep 2013 15:28:02 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 9F7638B67C; Fri, 6 Sep 2013 15:27:51 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 034801BF9F4 for ; Fri, 6 Sep 2013 15:27:50 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id F00EE8CFF9 for ; Fri, 6 Sep 2013 15:27:49 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id PE-8idDlA1yB for ; Fri, 6 Sep 2013 15:27:47 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wi0-f180.google.com (mail-wi0-f180.google.com [209.85.212.180]) by whitealder.osuosl.org (Postfix) with ESMTPS id 4D3758D042 for ; Fri, 6 Sep 2013 15:27:43 +0000 (UTC) Received: by mail-wi0-f180.google.com with SMTP id hj3so1054753wib.7 for ; Fri, 06 Sep 2013 08:27:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=UqgGKKlMcikvPnScbEuFCA94HZrPN/ichdzt6B4xKFw=; b=q87ifaoM0ffqVNQCE5DnkSkfzwibq/Aszx5hM29jTp62rwVZNvQDLKGePMhgVe2hhN 6tMsSAruzDMjibEsXScaopJVV2MjkdT6zf4jPgP65KpPDONYsm6xEDMncVS4q40oLqWx 1llJ7n6ZQU4lX0+wQmJ9CTe87aTjdz/xqKefQJux/R2I02DKNqS4vhe7sfi+mFZeCuJ8 R9XAzP96m5tm7bEKjuNzMy5Zb0YNH90fiUY/JGq/STyOW631ZHDekdrmNHZPyWwwFpNB uaJoqllNWgTAmPUTmHCOnbmlDkPsQtRYHg09WAfkvWpWhwqutZLnehEoj3zXeRtyCdO4 NDWg== X-Received: by 10.180.126.69 with SMTP id mw5mr2419358wib.59.1378481261899; Fri, 06 Sep 2013 08:27:41 -0700 (PDT) Received: from localhost.localdomain (IGLD-84-229-105-147.inter.net.il. [84.229.105.147]) by mx.google.com with ESMTPSA id e5sm7199268wiy.2.1969.12.31.16.00.00 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 06 Sep 2013 08:27:41 -0700 (PDT) From: Assaf Inbal To: buildroot@uclibc.org Date: Fri, 6 Sep 2013 18:26:48 +0300 Message-Id: <1378481208-955-3-git-send-email-shmuelzon@gmail.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1378481208-955-1-git-send-email-shmuelzon@gmail.com> References: <1378481208-955-1-git-send-email-shmuelzon@gmail.com> Cc: Assaf Inbal Subject: [Buildroot] [PATCH v3 2/2] getty: add the ability to pass options to getty X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net Signed-off-by: Assaf Inbal Acked-by: Thomas De Schampheleire --- system/Config.in | 7 +++++++ system/system.mk | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/system/Config.in b/system/Config.in index 92dc7dd..73986fb 100644 --- a/system/Config.in +++ b/system/Config.in @@ -244,6 +244,13 @@ config BR2_TARGET_GENERIC_GETTY_TERM default "vt100" help Specify a TERM type. + +config BR2_TARGET_GENERIC_GETTY_OPTIONS + string "other options to pass to getty" + default "" + help + Any other flags you want to pass to getty, + Refer to getty --help for details. endmenu endif diff --git a/system/system.mk b/system/system.mk index c9e7cf7..01a6c3a 100644 --- a/system/system.mk +++ b/system/system.mk @@ -30,13 +30,13 @@ target-root-passwd: $(SED) "s,^root:[^:]*:,root:$$TARGET_GENERIC_ROOT_PASSWD_HASH:," $(TARGET_DIR)/etc/shadow target-generic-getty-busybox: - $(SED) '/# GENERIC_SERIAL$$/s~^.*#~$(TARGET_GENERIC_GETTY_PORT)::respawn:/sbin/getty -L $(TARGET_GENERIC_GETTY_PORT) $(TARGET_GENERIC_GETTY_BAUDRATE) $(TARGET_GENERIC_GETTY_TERM) #~' \ + $(SED) '/# GENERIC_SERIAL$$/s~^.*#~$(TARGET_GENERIC_GETTY_PORT)::respawn:/sbin/getty -L $(TARGET_GENERIC_GETTY_OPTIONS) $(TARGET_GENERIC_GETTY_PORT) $(TARGET_GENERIC_GETTY_BAUDRATE) $(TARGET_GENERIC_GETTY_TERM) #~' \ $(TARGET_DIR)/etc/inittab # In sysvinit inittab, the "id" must not be longer than 4 bytes, so we # skip the "tty" part and keep only the remaining. target-generic-getty-sysvinit: - $(SED) '/# GENERIC_SERIAL$$/s~^.*#~$(shell echo $(TARGET_GENERIC_GETTY_PORT) | tail -c+4)::respawn:/sbin/getty -L $(TARGET_GENERIC_GETTY_PORT) $(TARGET_GENERIC_GETTY_BAUDRATE) $(TARGET_GENERIC_GETTY_TERM) #~' \ + $(SED) '/# GENERIC_SERIAL$$/s~^.*#~$(shell echo $(TARGET_GENERIC_GETTY_PORT) | tail -c+4)::respawn:/sbin/getty -L $(TARGET_GENERIC_GETTY_OPTIONS) $(TARGET_GENERIC_GETTY_PORT) $(TARGET_GENERIC_GETTY_BAUDRATE) $(TARGET_GENERIC_GETTY_TERM) #~' \ $(TARGET_DIR)/etc/inittab # Find commented line, if any, and remove leading '#'s