/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
- #!/bin/bash
- # $Header$
- # IFACE = Logical interface name
- # MODE = { start | stop }
- # METHOD = manual, otherwise exit
- # IF_FLAGS = flags to be set for the interface
- # this script takes care of flags that are not processed in other scripts
- . /etc/network/ifupdown-scripts-zg2.d/common-functions
- # remove state if interface is being stopped
- case "$MODE" in
- start)
- add_down "flags" "$IF_FLAGS"
- ;;
- stop)
- exec_down "flags" ""
- ;;
- esac
- # end of file