1
0

netifd-autoip.sh 321 B

1234567891011121314151617181920
  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