summaryrefslogtreecommitdiffstats
path: root/etc/rc.d/static_arp
diff options
context:
space:
mode:
authorhrs <hrs@FreeBSD.org>2009-10-02 02:24:25 +0000
committerhrs <hrs@FreeBSD.org>2009-10-02 02:24:25 +0000
commit415abdb87d0c125010f49ffd33750d1057f10e21 (patch)
treea1510915dc87f81737f2af15f6d1a1a8c4675af6 /etc/rc.d/static_arp
parenta1020b6c31d2177ae8780c7d352313ddec80e596 (diff)
downloadFreeBSD-src-415abdb87d0c125010f49ffd33750d1057f10e21.zip
FreeBSD-src-415abdb87d0c125010f49ffd33750d1057f10e21.tar.gz
- Add AF_IPX and AF_NATM to afexists().
- Add afexists() check to address family specific rc.d scripts. A script for an AF will be silently ignored if the kernel has no support for the AF.
Diffstat (limited to 'etc/rc.d/static_arp')
-rw-r--r--etc/rc.d/static_arp5
1 files changed, 5 insertions, 0 deletions
diff --git a/etc/rc.d/static_arp b/etc/rc.d/static_arp
index 582518f..816d581 100644
--- a/etc/rc.d/static_arp
+++ b/etc/rc.d/static_arp
@@ -34,6 +34,7 @@
# KEYWORD: nojail
. /etc/rc.subr
+. /etc/network.subr
name="static_arp"
start_cmd="static_arp_start"
@@ -43,6 +44,8 @@ static_arp_start()
{
local e arp_args
+ afexists inet || return 0
+
if [ -n "${static_arp_pairs}" ]; then
echo -n 'Binding static ARP pair(s):'
for e in ${static_arp_pairs}; do
@@ -58,6 +61,8 @@ static_arp_stop()
{
local e arp_args
+ afexists inet || return 0
+
if [ -n "${static_arp_pairs}" ]; then
echo -n 'Unbinding static ARP pair(s):'
for e in ${static_arp_pairs}; do
OpenPOWER on IntegriCloud