lede-packages-rs

git clone git://archive.git.mtrnord.blog/MTRNord/lede-packages-rs.git
Log | Files | Refs | README | LICENSE

netifd-autoip.sh (321B)


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