From patchwork Mon Nov 7 16:05:12 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Walle X-Patchwork-Id: 691968 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3tCHNJ2tBqz9t2C for ; Tue, 8 Nov 2016 03:05:36 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=walle.cc header.i=@walle.cc header.b="ihLkqbWk"; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id D5D0D31ADC; Mon, 7 Nov 2016 16:05:32 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id SyPy9fQIjyuE; Mon, 7 Nov 2016 16:05:28 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 21632315CC; Mon, 7 Nov 2016 16:05:28 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 66CE81CEA90 for ; Mon, 7 Nov 2016 16:05:27 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 65B4091DE4 for ; Mon, 7 Nov 2016 16:05:27 +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 B4CDgfonFQdg for ; Mon, 7 Nov 2016 16:05:25 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from ssl.serverraum.org (ssl.serverraum.org [213.133.101.245]) by whitealder.osuosl.org (Postfix) with ESMTPS id C5A1191BD7 for ; Mon, 7 Nov 2016 16:05:24 +0000 (UTC) Received: from mwalle01.sab.local. (unknown [194.25.174.126]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) by ssl.serverraum.org (Postfix) with ESMTPSA id CBC5E22249; Mon, 7 Nov 2016 17:05:18 +0100 (CET) Authentication-Results: ssl.serverraum.org; dmarc=none header.from=walle.cc DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2016061301; t=1478534718; bh=bM9Ct9dcOJMg/n/3pGkyC8xOkEUhNHaJnk7VhGXszGw=; h=From:To:Cc:Subject:Date:From; b=ihLkqbWk0HPMq3zf7xg0XGma283rIXFXrB/MtdedNz7KUGZgiCKFM9ZFvy2dlpQVn AMAhc4B5+SLB9C2eQM2THI0qlIHpanIlOUZHBzS2FDc4XfD5gjsL9gKojCR7vyZTDr KDhD7uzllJTpG7ch12dE/C5xYIv+iYpIwd3ZG1CI= From: Michael Walle To: buildroot@busybox.net Date: Mon, 7 Nov 2016 17:05:12 +0100 Message-Id: <1478534712-2470-1-git-send-email-michael@walle.cc> X-Mailer: git-send-email 2.1.4 X-Virus-Scanned: clamav-milter 0.99.2 at web X-Virus-Status: Clean Cc: Michael Walle Subject: [Buildroot] [PATCH] busybox: allow the user to set the telnetd options X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 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" Source /etc/default/telnet to make it possible to override the telnetd arguments. For example a user may want to set an alternative port. Signed-off-by: Michael Walle --- package/busybox/S50telnet | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/package/busybox/S50telnet b/package/busybox/S50telnet index 47e2b63..82952b8 100755 --- a/package/busybox/S50telnet +++ b/package/busybox/S50telnet @@ -3,10 +3,13 @@ # Start telnet.... # +TELNETD_ARGS=-F +[ -r /etc/default/telnet ] && . /etc/default/telnet + start() { printf "Starting telnetd: " start-stop-daemon -S -q -m -b -p /var/run/telnetd.pid \ - -x /usr/sbin/telnetd -- -F + -x /usr/sbin/telnetd -- $TELNETD_ARGS [ $? = 0 ] && echo "OK" || echo "FAIL" }