aboutsummaryrefslogtreecommitdiff
path: root/libs/avahi/files/netifd-autoip.sh
blob: be6725b837da3551dec875777f06ec61ad7336d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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