You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
321 B

  1. #!/bin/sh
  2. . /lib/functions.sh
  3. . ../netifd-proto.sh
  4. init_proto "$@"
  5. proto_autoip_setup() {
  6. local config="$1"
  7. local iface="$2"
  8. proto_export "INTERFACE=$config"
  9. proto_run_command "$config" avahi-autoipd $iface
  10. }
  11. proto_autoip_teardown() {
  12. local interface="$1"
  13. proto_kill_command "$interface"
  14. }
  15. add_protocol autoip