aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiroki Sato <hrs@FreeBSD.org>2011-06-11 21:41:44 +0000
committerHiroki Sato <hrs@FreeBSD.org>2011-06-11 21:41:44 +0000
commit1e1c0371e651e9e884ee19c96e8be575681d7640 (patch)
tree3192d445da5ad343c66eae15862cf16b5a85494b
parentd3ae0231fec26709766560ec3a9eaff299336ad6 (diff)
downloadsrc-1e1c0371e651e9e884ee19c96e8be575681d7640.tar.gz
src-1e1c0371e651e9e884ee19c96e8be575681d7640.zip
- Remove $ipv6_gateway_enable check.
- Use list_net_interfaces() instead of "ifconfig -l".
Notes
Notes: svn path=/head/; revision=222997
-rwxr-xr-xetc/rc.d/rtadvd8
1 files changed, 1 insertions, 7 deletions
diff --git a/etc/rc.d/rtadvd b/etc/rc.d/rtadvd
index 99b700d2c826..2ead892485ed 100755
--- a/etc/rc.d/rtadvd
+++ b/etc/rc.d/rtadvd
@@ -18,12 +18,6 @@ start_precmd="rtadvd_precmd"
rtadvd_precmd()
{
- if ! checkyesno ipv6_gateway_enable ; then
- warn \
- "${name} cannot be used on IPv6 host, only on an IPv6 router."
- return 1
- fi
-
# This should be enabled with a great care.
# You may want to fine-tune /etc/rtadvd.conf.
#
@@ -42,7 +36,7 @@ rtadvd_precmd()
#
case ${rtadvd_interfaces} in
[Aa][Uu][Tt][Oo]|'')
- for i in `ifconfig -l` ; do
+ for i in `list_net_interfaces`; do
case $i in
lo0) continue ;;
esac