blob: 8b9ec39c5f2240a567197cc71e622734069d605d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
#!/sbin/runscript
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-misc/dhcpv6/files/dhcp6s.rc,v 1.2 2004/03/06 03:33:06 vapier Exp $
#configuration is done in /etc/dhcp6s.conf
depend() {
need net
}
checkconfig() {
if [ ! -e /etc/dhcp6s.conf ] ; then
eerror "You need an /etc/dhcp6s.conf file to run dhcp6s"
eerror "There is a sample conf file in /usr/share/doc/dhcpv6-0.7"
return 1
fi
}
start() {
checkconfig || return 1
ebegin "Starting dhcp6s"
start-stop-daemon --start --quiet --exec /usr/sbin/dhcp6s
eend $?
}
stop() {
ebegin "Stopping dhcp6s"
start-stop-daemon --stop --quiet --exec /usr/sbin/dhcp6s
eend $?
}
|