]> git.pld-linux.org Git - projects/rc-scripts.git/blob - lib/ifup-neigh
- devtmpfs is madatory for udev >= 176
[projects/rc-scripts.git] / lib / ifup-neigh
1 #!/bin/sh
2 #
3 #       $Id$
4 #
5 # Adds static arps for device $DEVICE
6 # Called from ifup-post.
7
8 if is_no "$IPV4_NETWORKING"; then
9         return
10 fi
11
12 if [ ! -f /etc/sysconfig/static-arp ]; then
13         return
14 fi
15
16 # note the trailing white space character in the grep gets rid of aliases
17 grep -E "^($DEVICE|any)[[:blank:]]" /etc/sysconfig/static-arp | while read iface mac ip state args; do
18         [ -z "$state" ] && state="stale"
19         /sbin/ip neigh replace $ip lladdr $mac nud $state dev $DEVICE
20 done
This page took 0.254855 seconds and 3 git commands to generate.