PageRenderTime 31ms CodeModel.GetById 25ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 1ms

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

http://github.com/brinkman83/bashrc
#! | 22 lines | 18 code | 4 blank | 0 comment | 0 complexity | cf95b207d0961de16bd780b27ed5696d 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_DEVICE	       = device to be used
 8# IF_ACCEPT_REDIRECTS  = 0/1 - should this interface accept redirects
 9# IF_SEND_REDIRECTS    = 0/1 - should this interface issue redirects
10
11. /etc/network/ifupdown-scripts-zg2.d/common-functions
12
13case "$MODE" in
14  start)
15    set_bool_value "accept_redirects" "$IF_ACCEPT_REDIRECTS"
16    set_bool_value "send_redirects" "$IF_SEND_REDIRECTS"
17    ;;
18  *)
19    ;;
20esac
21
22# end of file