mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 15:38:40 +01:00
avahi: Update to 0.6.32. Add netifd proto handler for avahi-autoipd
You can now specify in '/etc/config/network' config interface 'eth1_autoip' option ifname 'eth1' option proto 'autoip' And netifd would handle the rest of the logic/setup. Signed-off-by: Claudiu Brasovean <cbrasho@gmail.com> Signed-off-by: Ted Hess <thess@kitschensync.net>
This commit is contained in:
committed by
Ted Hess
parent
81ce555cf2
commit
0312a14a47
Executable
+20
@@ -0,0 +1,20 @@
|
||||
#!/bin/sh
|
||||
|
||||
. /lib/functions.sh
|
||||
. ../netifd-proto.sh
|
||||
init_proto "$@"
|
||||
|
||||
proto_autoip_setup() {
|
||||
local config="$1"
|
||||
local iface="$2"
|
||||
|
||||
proto_export "INTERFACE=$config"
|
||||
proto_run_command "$config" avahi-autoipd $iface
|
||||
}
|
||||
|
||||
proto_autoip_teardown() {
|
||||
local interface="$1"
|
||||
proto_kill_command "$interface"
|
||||
}
|
||||
|
||||
add_protocol autoip
|
||||
Reference in New Issue
Block a user