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