File: uml-utilities.if-up.d

package info (click to toggle)
uml-utilities 20060323-3
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 660 kB
  • ctags: 413
  • sloc: ansic: 3,231; perl: 930; makefile: 224; sh: 215; exp: 129
file content (12 lines) | stat: -rw-r--r-- 261 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh

test -n "${IF_UML_PROXY_ARP}" || exit 0
test -n "${IF_UML_PROXY_ETHER}" || exit 0

sysctl -w net/ipv4/conf/"${IFACE}"/proxy_arp=1

for i in ${IF_UML_PROXY_ARP};
do
  route add -host "$i" dev "${IFACE}"
  arp -Ds "$i" "${IF_UML_PROXY_ETHER}" pub
done