diff options
author | mtm <mtm@FreeBSD.org> | 2003-01-24 00:37:52 +0000 |
---|---|---|
committer | mtm <mtm@FreeBSD.org> | 2003-01-24 00:37:52 +0000 |
commit | 8a55a31618aea1ffbd4a75915958fdcb772c3236 (patch) | |
tree | 1b6308eea7ce20e24d5856f2d1321163219be981 /etc/rc.d/rtadvd | |
parent | dee3b611a1261c54189e3923882d17b9752260b3 (diff) | |
download | FreeBSD-src-8a55a31618aea1ffbd4a75915958fdcb772c3236.zip FreeBSD-src-8a55a31618aea1ffbd4a75915958fdcb772c3236.tar.gz |
Cleanup as many instances of rc.conf variable use before
calling load_rc_config().
Approved by: markm (mentor) dougb
Diffstat (limited to 'etc/rc.d/rtadvd')
-rwxr-xr-x | etc/rc.d/rtadvd | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/etc/rc.d/rtadvd b/etc/rc.d/rtadvd index 1398afd..5e0a6dc 100755 --- a/etc/rc.d/rtadvd +++ b/etc/rc.d/rtadvd @@ -16,17 +16,16 @@ rcvar=`set_rcvar` command="/usr/sbin/${name}" start_precmd="rtadvd_precmd" -case ${OSTYPE} in -FreeBSD) - IS_GATEWAY="checkyesno ipv6_gateway_enable" - ;; -NetBSD) - IS_GATEWAY="eval [ \"$ip6mode\" = \"router\" ]" - ;; -esac - rtadvd_precmd() { + case ${OSTYPE} in + FreeBSD) + IS_GATEWAY="checkyesno ipv6_gateway_enable" + ;; + NetBSD) + IS_GATEWAY="eval [ \"$ip6mode\" = \"router\" ]" + ;; + esac if ! ${IS_GATEWAY}; then warn \ "${name} cannot be used on IPv6 host, only on an IPv6 router." |