#cat
S45telnet
#!/bin/sh
#
# Start the
telnet....
#
start() {
echo "Starting telnet..."
/usr/sbin/telnetd -p 1111 -K -l /bin/sh
}
stop()
{
echo -n "Stopping
telnet..."
}
restart() {
stop
start
}
case "$1"
in
start)
start
;;
stop)
stop
;;
restart|reload)
restart
;;
*)
echo $"Usage: $0
{start|stop|restart}"
exit
1
esac
exit $?
Script
rcS
#cat
rcS
#!/bin/sh
# Start all
init scripts in /etc/init.d
# executing them in numerical order.
#
for
i in /etc/init.d/S??* ;do
# Ignore dangling
symlinks (if any).
[ ! -f "$i" ] &&
continue
case "$i"
in
*.sh)
#
Source shell script for
speed.
(
trap - INT QUIT
TSTP
set
start
. $i
)
;;
*)
# No sh
extension, so fork
subprocess.
$i start
;;
esac
done
Alguno sabe que
puedo estar haciendo mal?, o que me falta?
Gracias a todos y
buen Aņo!