diff options
author | Bill Nottingham <notting@redhat.com> | 2000-12-12 07:50:00 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2000-12-12 07:50:00 +0000 |
commit | f29c352a905cc0867eb0198eacc7734fd651e525 (patch) | |
tree | ecf1b67cd129b7bdf9afcc209647be2a64f66164 /sysconfig/network-scripts/network-functions | |
parent | 6cdbc1fbbfd1de615402e1ddcc1dbb1590b69dd5 (diff) | |
download | initscripts-f29c352a905cc0867eb0198eacc7734fd651e525.tar initscripts-f29c352a905cc0867eb0198eacc7734fd651e525.tar.gz initscripts-f29c352a905cc0867eb0198eacc7734fd651e525.tar.bz2 initscripts-f29c352a905cc0867eb0198eacc7734fd651e525.tar.xz initscripts-f29c352a905cc0867eb0198eacc7734fd651e525.zip |
fix ARP handling, allow for setting promiscuous or all-multicast mode
Diffstat (limited to 'sysconfig/network-scripts/network-functions')
-rw-r--r-- | sysconfig/network-scripts/network-functions | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/sysconfig/network-scripts/network-functions b/sysconfig/network-scripts/network-functions index dd566ad6..648cb95d 100644 --- a/sysconfig/network-scripts/network-functions +++ b/sysconfig/network-scripts/network-functions @@ -17,6 +17,20 @@ source_config () . $CONFIG } +toggle_value() +{ + if [ -z "$2" ] + then + echo '' + elif [ "$2" = "yes" -o "$2" = "YES" ] ; then + echo "$1" + elif [ "$2" = "no" -o "$2" = "NO" ] ; then + echo "-$1" + else + echo '' + fi +} + do_netreport () { # Notify programs that have requested notification |