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