#!/bin/sh | |
# | |
# For manufacture we offer a mechanism of starting up a telnetd. | |
# In production units this will be disabled. | |
# | |
case "$1" in | |
start) | |
if [ -e /tmp/DEBUG ] || [ -e /tmp/ADMINMODE_TELNETD ]; then | |
/usr/sbin/inetd 2>&1 | logos inetd | |
fi | |
;; | |
stop) | |
pkill -9 -x inetd | |
pkill -9 -x telnetd | |
;; | |
restart) | |
$0 stop; $0 start | |
;; | |
*) | |
echo "Usage: $0 {start|stop|restart}" | |
exit 1 | |
esac |