summaryrefslogtreecommitdiffstats
path: root/etc/rc.d/yppasswdd
diff options
context:
space:
mode:
authormtm <mtm@FreeBSD.org>2004-01-17 10:59:43 +0000
committermtm <mtm@FreeBSD.org>2004-01-17 10:59:43 +0000
commit5da6236d0167eab4e233aaf815198eb7d1fe5898 (patch)
tree6439610462f4b5b56816a33d4ba3c60ab1fe1868 /etc/rc.d/yppasswdd
parent7948e91c15e85d387bf8070d18fd9257a7d982be (diff)
downloadFreeBSD-src-5da6236d0167eab4e233aaf815198eb7d1fe5898.zip
FreeBSD-src-5da6236d0167eab4e233aaf815198eb7d1fe5898.tar.gz
Luke Mewburn has indicated that they (NetBSD) are not interested
in keeping the scripts under rc.d in sync with us. So, remove NetBSD specific stuff (which made our scripts more complicated than necessary). The NetBSD ident string will be left intact, both for history and also incase we wish to pull in future versions.
Diffstat (limited to 'etc/rc.d/yppasswdd')
-rwxr-xr-xetc/rc.d/yppasswdd37
1 files changed, 12 insertions, 25 deletions
diff --git a/etc/rc.d/yppasswdd b/etc/rc.d/yppasswdd
index 6d705fa..8d82d08 100755
--- a/etc/rc.d/yppasswdd
+++ b/etc/rc.d/yppasswdd
@@ -16,34 +16,21 @@ command="/usr/sbin/rpc.${name}"
start_precmd="yppasswdd_precmd"
load_rc_config $name
-case ${OSTYPE} in
-FreeBSD)
- rcvar="nis_yppasswdd_enable"
- command_args="${nis_yppasswdd_flags}"
- ;;
-NetBSD)
- rcvar=$name
- required_vars="rpcbind ypserv"
- ;;
-esac
+rcvar="nis_yppasswdd_enable"
+command_args="${nis_yppasswdd_flags}"
yppasswdd_precmd()
{
- case ${OSTYPE} in
- FreeBSD)
- if ! checkyesno rpcbind_enable && \
- ! /etc/rc.d/rpcbind forcestatus 1>/dev/null 2>&1
- then
- force_depend rpcbind || return 1
- fi
- if ! checkyesno nis_server_enable && \
- ! /etc/rc.d/ypserv forcestatus 1>/dev/null 2>&1
- then
- force_depend ypserv || return 1
- fi
- ;;
- esac
-
+ if ! checkyesno rpcbind_enable && \
+ ! /etc/rc.d/rpcbind forcestatus 1>/dev/null 2>&1
+ then
+ force_depend rpcbind || return 1
+ fi
+ if ! checkyesno nis_server_enable && \
+ ! /etc/rc.d/ypserv forcestatus 1>/dev/null 2>&1
+ then
+ force_depend ypserv || return 1
+ fi
_domain=`domainname`
if [ -z "$_domain" ]; then
warn "NIS domainname(1) is not set."
OpenPOWER on IntegriCloud