2006-03-08 19:38:12 +00:00
|
|
|
#!@bash@/bin/bash
|
|
|
|
#
|
|
|
|
# Dummy init file for network, hacketyhack!
|
|
|
|
#
|
|
|
|
# chkconfig: 2345 55 25
|
|
|
|
# description: OpenSSH server daemon
|
|
|
|
#
|
|
|
|
# processname: sshd
|
|
|
|
|
|
|
|
# source function library
|
2006-03-17 14:16:11 +00:00
|
|
|
source @initscripts@/functions
|
2006-03-08 19:38:12 +00:00
|
|
|
|
|
|
|
# pull in sysconfig settings
|
|
|
|
#[ -f /etc/sysconfig/sshd ] && . /etc/sysconfig/sshd
|
|
|
|
|
|
|
|
RETVAL=0
|
|
|
|
prog="network"
|
2006-03-17 16:33:59 +00:00
|
|
|
INTERFACE=eth0
|
2006-03-08 19:38:12 +00:00
|
|
|
|
2006-03-17 14:16:11 +00:00
|
|
|
startService()
|
2006-03-08 19:38:12 +00:00
|
|
|
{
|
|
|
|
# just do networking
|
2006-03-17 16:33:59 +00:00
|
|
|
echo -n "Starting $prog:"
|
|
|
|
@dhcp@/sbin/dhclient $INTERFACE
|
|
|
|
|
|
|
|
RETVAL=$?
|
|
|
|
echo "retval $RETVAL"
|
|
|
|
return $RETVAL
|
2006-03-08 19:38:12 +00:00
|
|
|
}
|
|
|
|
|
2006-03-17 14:16:11 +00:00
|
|
|
stopService()
|
2006-03-08 19:38:12 +00:00
|
|
|
{
|
2006-03-17 16:33:59 +00:00
|
|
|
echo "BLAAT"
|
2006-03-08 19:38:12 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
reload()
|
|
|
|
{
|
|
|
|
start
|
|
|
|
stop
|
|
|
|
}
|
|
|
|
|
|
|
|
case "$1" in
|
|
|
|
start)
|
|
|
|
start
|
|
|
|
;;
|
|
|
|
stop)
|
|
|
|
stop
|
|
|
|
;;
|
|
|
|
restart)
|
|
|
|
stop
|
|
|
|
start
|
|
|
|
;;
|
|
|
|
reload)
|
|
|
|
reload
|
|
|
|
;;
|
|
|
|
status)
|
2006-03-17 14:16:11 +00:00
|
|
|
status
|
|
|
|
;;
|
|
|
|
name)
|
|
|
|
name
|
2006-03-08 19:38:12 +00:00
|
|
|
;;
|
|
|
|
*)
|
2006-03-17 14:16:11 +00:00
|
|
|
echo $"Usage: $0 {start|stop|restart|reload|status|name}"
|
2006-03-08 19:38:12 +00:00
|
|
|
RETVAL=1
|
|
|
|
esac
|
|
|
|
exit $RETVAL
|