]> git.pld-linux.org Git - projects/rc-scripts.git/blame - lib/ifup-neigh
drop raidutils (raidstart, /etc/raidtab) support. our geninitrd doesn't support it...
[projects/rc-scripts.git] / lib / ifup-neigh
CommitLineData
eaf1d53a
AM
1#!/bin/sh
2#
ec8b15cb 3# $Id$
eaf1d53a 4#
625871bd
ER
5# Adds static arps for device $DEVICE
6# Called from ifup-post.
eaf1d53a 7
ba8561af
ER
8if is_no "$IPV4_NETWORKING"; then
9 return
10fi
11
eaf1d53a 12if [ ! -f /etc/sysconfig/static-arp ]; then
b8c0e37b 13 return
eaf1d53a
AM
14fi
15
eaf1d53a 16# note the trailing white space character in the grep gets rid of aliases
a51d5138 17grep -E "^($DEVICE|any)[[:blank:]]" /etc/sysconfig/static-arp | while read iface mac ip state args; do
5e6dfc29
JR
18 [ -z "$state" ] && state="stale"
19 /sbin/ip neigh replace $ip lladdr $mac nud $state dev $DEVICE
eaf1d53a 20done
This page took 0.080107 seconds and 4 git commands to generate.