diff options
author | Marc-Antoine Perennou <Marc-Antoine@Perennou.com> | 2015-10-19 16:23:13 +0200 |
---|---|---|
committer | Marc-Antoine Perennou <Marc-Antoine@Perennou.com> | 2015-10-19 16:23:54 +0200 |
commit | e53cc5b2dd9f994c9810142a0b2ea38f06b322da (patch) | |
tree | e457e5d94603002dae20f7b21807f895b4ac023c /net-dns/avahi/files/autoipd.sh | |
parent | update gpaste (diff) | |
download | keruspe-master.tar.gz keruspe-master.tar.bz2 keruspe-master.zip |
Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
Diffstat (limited to 'net-dns/avahi/files/autoipd.sh')
-rw-r--r-- | net-dns/avahi/files/autoipd.sh | 52 |
1 files changed, 0 insertions, 52 deletions
diff --git a/net-dns/avahi/files/autoipd.sh b/net-dns/avahi/files/autoipd.sh deleted file mode 100644 index 89d02e33..00000000 --- a/net-dns/avahi/files/autoipd.sh +++ /dev/null @@ -1,52 +0,0 @@ -# Copyright (c) 2004-2006 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# Contributed by Sven Wegener (swegener@gentoo.org) - -# void autoipd_depend(void) -# -# Sets up the dependencies for the module -autoipd_depend() { - after interface -} - -# void autoipd_expose(void) -# -# Expose variables that can be configured -autoipd_expose() { - variables autoipd -} - -# bool autoipd_start(char *iface) -# -# Tries to configure the interface via avahi-autoipd -autoipd_start() { - local iface="${1}" ifvar="$(bash_variable "${iface}")" opts="autoipd_${ifvar}" addr="" - - interface_exists "${iface}" true || return 1 - - ebegin "Starting avahi-autoipd" - if /usr/sbin/avahi-autoipd --daemonize --syslog --wait ${!opts} "${iface}" - then - eend 0 - addr="$(interface_get_address "${iface}")" - einfo "${iface} received address ${addr}" - return 0 - fi - - eend "${?}" "Failed to get address via avahi-autoipd!" -} - -# bool autoipd_stop(char *iface) -# -# Stops a running avahi-autoipd instance -autoipd_stop() { - local iface="${1}" - - /usr/sbin/avahi-autoipd --check --syslog "${iface}" || return 0 - - ebegin "Stopping avahi-autoipd" - /usr/sbin/avahi-autoipd --kill --syslog "${iface}" - eend "${?}" "Failed to stop running avahi-autoipd instance!" -} - -# vim: set ts=4 : |