mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-29 14:57:28 +03:00
67971a4349
to eth0. Oh, what a hack...but it works :) svn path=/nixpkgs/trunk/; revision=5050
67 lines
785 B
Bash
Executable File
67 lines
785 B
Bash
Executable File
#!@bash@/bin/bash
|
|
#
|
|
# Dummy init file for network, hacketyhack!
|
|
#
|
|
# chkconfig: 2345 55 25
|
|
# description: OpenSSH server daemon
|
|
#
|
|
# processname: sshd
|
|
|
|
# source function library
|
|
source @initscripts@/functions
|
|
|
|
# pull in sysconfig settings
|
|
#[ -f /etc/sysconfig/sshd ] && . /etc/sysconfig/sshd
|
|
|
|
RETVAL=0
|
|
prog="network"
|
|
INTERFACE=eth0
|
|
|
|
startService()
|
|
{
|
|
# just do networking
|
|
echo -n "Starting $prog:"
|
|
@dhcp@/sbin/dhclient $INTERFACE
|
|
|
|
RETVAL=$?
|
|
echo "retval $RETVAL"
|
|
return $RETVAL
|
|
}
|
|
|
|
stopService()
|
|
{
|
|
echo "BLAAT"
|
|
}
|
|
|
|
reload()
|
|
{
|
|
start
|
|
stop
|
|
}
|
|
|
|
case "$1" in
|
|
start)
|
|
start
|
|
;;
|
|
stop)
|
|
stop
|
|
;;
|
|
restart)
|
|
stop
|
|
start
|
|
;;
|
|
reload)
|
|
reload
|
|
;;
|
|
status)
|
|
status
|
|
;;
|
|
name)
|
|
name
|
|
;;
|
|
*)
|
|
echo $"Usage: $0 {start|stop|restart|reload|status|name}"
|
|
RETVAL=1
|
|
esac
|
|
exit $RETVAL
|