File: flags

package info (click to toggle)
ifupdown-scripts-zg2 0.2-2
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, sarge
  • size: 484 kB
  • ctags: 55
  • sloc: sh: 4,037; makefile: 37
file content (25 lines) | stat: -rwxr-xr-x 600 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/bash
# $Header: /var/local/cvs/debian/ifupdown-scripts-zg2/scripts/ifupdown-scripts-zg2.d/flags,v 1.1 2004/09/12 18:00:04 mh Exp $

# 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