~ubuntu-branches/ubuntu/lucid/vlan/lucid

« back to all changes in this revision

Viewing changes to debian/network/if-up.d/ip

  • Committer: Bazaar Package Importer
  • Author(s): Loic Minier
  • Date: 2007-09-30 18:12:43 UTC
  • mfrom: (5.1.1 lenny)
  • Revision ID: james.westby@ubuntu.com-20070930181243-rzeraxopajdq6ngw
Tags: 1.9-3
* Add XS-Vcs-Git and XS-Vcs-Browser fields to control.
* Fix and cleanup the vlan-interfaces.5 man page.
* Drop useless delta and cleanup Debian diff.
* Rewrite copyright file completely; some copyrights and licensing headers
  are missing upstream and should be clarified with the help of upstream.
* Stop installing README; no useful additional information.
* Drop Debian specific exit codes for vconfig errors; use upstream exit
  codes instead; document this change in NEWS.
* Big cleanup to build and rules; misc fixes for obsolete constructions.
* Cleanup CCFLAGS:
  - Build without -D_GNU_SOURCE; makes no difference on the resulting
    binaries, so simply rely on the upstream build.
  - Build with -O2 unless DEB_BUILD_OPTIONS has noopt.
* Prepare to ship macvlan_config in the future.
* Add support for bonding in if-pre-up and if-post-down scripts; cleanup
  these scripts; closes: #404630.
* Point to the vlan-interfaces(5) man page in the Debian README and
  recommend setting vlan-raw-device.
* Add support for wlan in if-pre-up and if-post-down scripts;
  closes: #398837.
* Document the bonding and wlan changes in NEWS.
* Install howto.html as documentation.
* Document that aliases are ignored by the vlan scripts; closes: #400827.
* Add debian/TODO list.
* Pass STRIP=true to the upstream build to avoid stripping; closes: #438253.
* Hide "bind-type" in help string as it doesn't seem to be implemented;
  closes: #398807.
* Document that the default for REORDER_HDR is 1 since 2.6.18; thanks
  Kristian Sørensen; closes: #436219.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
# This should probably go into ifupdown
 
3
# But usually only those with lots of interfaces (vlans) need these
 
4
if [ -d "/proc/sys/net/ipv4/conf/$IFACE" ]
 
5
then
 
6
        if [ -n "$IF_IP_PROXY_ARP" ]; then
 
7
                if [ "$IF_IP_PROXY_ARP" -eq "1" ]; then
 
8
                        echo 1 > "/proc/sys/net/ipv4/conf/$IFACE/proxy_arp"
 
9
                else
 
10
                        echo 0 > "/proc/sys/net/ipv4/conf/$IFACE/proxy_arp"
 
11
                fi
 
12
        fi
 
13
        if [ -n "$IF_IP_RP_FILTER" ]; then
 
14
                if [ "$IF_IP_RP_FILTER" -eq "0" ]; then
 
15
                        echo 0 > "/proc/sys/net/ipv4/conf/$IFACE/rp_filter"
 
16
                else
 
17
                        echo 1 > "/proc/sys/net/ipv4/conf/$IFACE/rp_filter"
 
18
                fi
 
19
        fi
 
20
fi
 
21