summaryrefslogtreecommitdiffstats
path: root/etc/rc.d/stf
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/stf
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/stf')
-rwxr-xr-xetc/rc.d/stf4
1 files changed, 4 insertions, 0 deletions
diff --git a/etc/rc.d/stf b/etc/rc.d/stf
index 40b182a..fa1bfbd 100755
--- a/etc/rc.d/stf
+++ b/etc/rc.d/stf
@@ -15,6 +15,8 @@ stop_cmd="stf_down"
stf_up()
{
+ afexists inet6 || return 0
+
case ${stf_interface_ipv4addr} in
[Nn][Oo] | '')
;;
@@ -67,6 +69,8 @@ stf_up()
stf_down()
{
+ afexists inet6 || return 0
+
echo "Removing 6to4 tunnel interface: stf0."
ifconfig stf0 destroy
route delete -inet6 2002:e000:: -prefixlen 20 ::1
OpenPOWER on IntegriCloud