summaryrefslogtreecommitdiff
path: root/target/device/Atmel/atngw100/target_skeleton/etc/init.d/S40telnetd
blob: b253c10364401a627f4d57cb80d99aec0bf17990 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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; then
	echo "done"
else
	echo "failed"
	exit 1
fi