ifplugd_handler 299 B

123456789101112131415
  1. #!/bin/sh
  2. # parameters:
  3. # $1: interface
  4. # $2: state
  5. if test -d "/var/service/dhcp_$1"; then
  6. if test x"$2" = x"down"; then
  7. echo "Downing /var/service/dhcp_$1"
  8. sv d "/var/service/dhcp_$1"
  9. fi
  10. if test x"$2" = x"up"; then
  11. echo "Upping /var/service/dhcp_$1"
  12. sv u "/var/service/dhcp_$1"
  13. fi
  14. fi