summaryrefslogtreecommitdiffstats
path: root/etc/network.subr
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/network.subr
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/network.subr')
-rw-r--r--etc/network.subr10
1 files changed, 10 insertions, 0 deletions
diff --git a/etc/network.subr b/etc/network.subr
index 83141ec..d2c2111 100644
--- a/etc/network.subr
+++ b/etc/network.subr
@@ -356,6 +356,16 @@ afexists()
inet6)
${SYSCTL_N} net.inet6 > /dev/null 2>&1
;;
+ ipx)
+ ${SYSCTL_N} net.ipx > /dev/null 2>&1
+ ;;
+ atm)
+ if [ -x /sbin/atmconfig ]; then
+ /sbin/atmconfig diag list > /dev/null 2>&1
+ else
+ return 1
+ fi
+ ;;
*)
err 1 "afexists(): Unsupported address family: $_af"
;;
OpenPOWER on IntegriCloud