diff options
Diffstat (limited to 'target/device/Atmel/atstk1002/target_skeleton/etc/init.d/S40telnetd')
-rwxr-xr-x | target/device/Atmel/atstk1002/target_skeleton/etc/init.d/S40telnetd | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/target/device/Atmel/atstk1002/target_skeleton/etc/init.d/S40telnetd b/target/device/Atmel/atstk1002/target_skeleton/etc/init.d/S40telnetd new file mode 100755 index 000000000..c44bbb5ae --- /dev/null +++ b/target/device/Atmel/atstk1002/target_skeleton/etc/init.d/S40telnetd @@ -0,0 +1,16 @@ +#!/bin/sh + +TELNETD=/usr/sbin/telnetd + +echo -n "Starting telnetd:" +if [ ! -x "${TELNETD}" ]; then + echo " missing" + exit 1 +fi + +if ${TELNETD} -l /bin/ash > /dev/null 2> /dev/null; then + echo " done" +else + echo " failed" + exit 1 +fi |