summaryrefslogtreecommitdiffstats
path: root/etc/rc.d/stf
diff options
context:
space:
mode:
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