PageRenderTime 4ms CodeModel.GetById 1ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

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