Skip to contentSkip to conversation

busybox: allow the user to set the telnetd options

PATCH New Michael Walle 2 participants 2 messages Nov 7, 2016

lore
Share & tools
lore
#0 lore raw

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.

---
 package/busybox/S50telnet | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
package/busybox/S50telnet +4 -1
index 47e2b63..82952b8 100755
@@ -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
#1 lore raw

PATCH 1/1 busybox: allow the user to set the telnetd options

Hello,

Quoted 7 lines · Michael Walle

Source /etc/default/telnet to make it possible to override the telnetd arguments. For example a user may want to set an alternative port.

---
 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