Magellan Linux

Annotation of /trunk/avahi/autoipd-openrc.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 773 - (hide annotations) (download) (as text)
Tue Apr 28 15:54:39 2009 UTC (15 years ago) by niro
File MIME type: application/x-sh
File size: 700 byte(s)
autoipd scripts from gentoo

1 niro 773 # Copyright (C) 2004-2008 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3     # Contributed by Sven Wegener (swegener@gentoo.org)
4    
5     _config_vars="$_config_vars autoipd"
6    
7     autoipd_depend() {
8     program /usr/sbin/avahi-autoipd
9     after interface
10     }
11    
12     autoipd_start() {
13     _exists true || return 1
14    
15     eval args=\$autoipd_${IFVAR}
16    
17     ebegin "Starting avahi-autoipd"
18     /usr/sbin/avahi-autoipd --daemonize --syslog --wait ${args} "${IFACE}"
19     eend "${?}" || return 1
20    
21     _show_address
22    
23     return 0
24     }
25    
26     autoipd_stop() {
27     /usr/sbin/avahi-autoipd --check --syslog "${IFACE}" || return 0
28    
29     ebegin "Stopping avahi-autoipd"
30     /usr/sbin/avahi-autoipd --kill --syslog "${IFACE}"
31     eend "${?}"
32     }