]> git.pld-linux.org Git - projects/rc-scripts.git/blame - sysconfig/network-scripts/ifup-neigh
ifup-{aliases,routes,neigh} are now sourced instead of executed
[projects/rc-scripts.git] / sysconfig / network-scripts / ifup-neigh
CommitLineData
eaf1d53a
AM
1#!/bin/sh
2#
ec8b15cb 3# $Id$
eaf1d53a
AM
4#
5# adds static arps for device $DEVICE
6
eaf1d53a 7if [ ! -f /etc/sysconfig/static-arp ]; then
b8c0e37b 8 return
eaf1d53a
AM
9fi
10
eaf1d53a
AM
11# note the trailing white space character in the grep gets rid of aliases
12egrep "^($DEVICE|any)[[:blank:]]" /etc/sysconfig/static-arp | while read iface mac ip state args; do
5e6dfc29
JR
13 if is_no "$IPV4_NETWORKING"; then
14 continue
15 fi
16 [ -z "$state" ] && state="stale"
17 /sbin/ip neigh replace $ip lladdr $mac nud $state dev $DEVICE
eaf1d53a
AM
18done
19
eaf1d53a 20# This must be last line !
5e6dfc29 21# vi:syntax=sh
This page took 0.055036 seconds and 4 git commands to generate.