kumquat-buildroot/target/device/Atmel/atstk100x/target_skeleton/etc/init.d/S40telnetd

17 lines
201 B
Plaintext
Raw Normal View History

2007-07-29 09:15:35 +02:00
#!/bin/sh
TELNETD=/usr/sbin/telnetd
2007-08-17 15:02:52 +02:00
echo -n "Starting telnetd: "
2007-07-29 09:15:35 +02:00
if [ ! -x "${TELNETD}" ]; then
2007-08-17 15:02:52 +02:00
echo "missing"
2007-07-29 09:15:35 +02:00
exit 1
fi
2008-03-06 19:59:14 +01:00
if ${TELNETD} -l /bin/sh; then
2007-08-17 15:02:52 +02:00
echo "done"
2007-07-29 09:15:35 +02:00
else
2007-08-17 15:02:52 +02:00
echo "failed"
2007-07-29 09:15:35 +02:00
exit 1
fi