/network/ifupdown-scripts-zg2.d/flags

http://github.com/brinkman83/bashrc · #! · 25 lines · 18 code · 7 blank · 0 comment · 0 complexity · 9fc593baea3d825e685d476784af2384 MD5 · raw file

  1. #!/bin/bash
  2. # $Header$
  3. # IFACE = Logical interface name
  4. # MODE = { start | stop }
  5. # METHOD = manual, otherwise exit
  6. # IF_FLAGS = flags to be set for the interface
  7. # this script takes care of flags that are not processed in other scripts
  8. . /etc/network/ifupdown-scripts-zg2.d/common-functions
  9. # remove state if interface is being stopped
  10. case "$MODE" in
  11. start)
  12. add_down "flags" "$IF_FLAGS"
  13. ;;
  14. stop)
  15. exec_down "flags" ""
  16. ;;
  17. esac
  18. # end of file