busybox: allow the user to set the telnetd options
PATCH 1/1 busybox: allow the user to set the telnetd options
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 <[email protected]>
--- package/busybox/S50telnet | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
package/busybox/S50telnet +4 -1
@@ -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" }
Signature · 1 line
2.1.4
Thomas Petazzoni
AppliedPATCH 1/1 busybox: allow the user to set the telnetd options
Hello,
Quoted 7 lines · Michael Walle
Source
/etc/default/telnetto make it possible to override the telnetd arguments. For example a user may want to set an alternative port.Signed-off-by Michael Walle <[email protected]>--- package/busybox/S50telnet | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
Applied to next, thanks.
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com