Browse Source

Cleanups and fixes.

ok robert@
OPENBSD_5_0
ajacoutot 13 years ago
parent
commit
2b61e3d55f
4 changed files with 9 additions and 12 deletions
  1. +2
    -3
      src/etc/rc.d/amd
  2. +2
    -3
      src/etc/rc.d/btd
  3. +3
    -3
      src/etc/rc.d/dhcpd
  4. +2
    -3
      src/etc/rc.d/yppasswdd

+ 2
- 3
src/etc/rc.d/amd View File

@ -1,6 +1,6 @@
#!/bin/sh
#
# $OpenBSD: amd,v 1.1 2011/07/08 02:15:34 robert Exp $
# $OpenBSD: amd,v 1.2 2011/07/08 04:29:54 ajacoutot Exp $
daemon="/usr/sbin/amd"
@ -11,9 +11,8 @@ rc_restart=NO
rc_stop=NO
rc_pre() {
[ -e ${amd_master} ]
[ -e ${amd_master} ] || return 1
daemon_flags=$(cat ${amd_master})
return 0
}
rc_cmd $1

+ 2
- 3
src/etc/rc.d/btd View File

@ -1,13 +1,12 @@
#!/bin/sh
#
# $OpenBSD: btd,v 1.1 2011/07/07 22:30:37 robert Exp $
# $OpenBSD: btd,v 1.2 2011/07/08 04:29:54 ajacoutot Exp $
daemon="/usr/sbin/btd"
. /etc/rc.d/rc.subr
pexp="btd: \[priv\]"
no_reload=YES
rc_reload=NO
rc_cmd $1

+ 3
- 3
src/etc/rc.d/dhcpd View File

@ -1,15 +1,15 @@
#!/bin/sh
#
# $OpenBSD: dhcpd,v 1.1 2011/07/06 18:55:36 robert Exp $
# $OpenBSD: dhcpd,v 1.2 2011/07/08 04:29:54 ajacoutot Exp $
daemon="/usr/sbin/dhcpd"
. /etc/rc.d/rc.subr
rc_reload=NO
rc_pre() {
touch /var/db/dhcpd.leases
}
rc_reload=NO
rc_cmd $1

+ 2
- 3
src/etc/rc.d/yppasswdd View File

@ -1,6 +1,6 @@
#!/bin/sh
#
# $OpenBSD: yppasswdd,v 1.3 2011/07/08 02:15:34 robert Exp $
# $OpenBSD: yppasswdd,v 1.4 2011/07/08 04:29:54 ajacoutot Exp $
daemon="/usr/sbin/rpc.yppasswdd"
@ -22,8 +22,7 @@ rc_pre() {
_host2=`echo $_host2 | nslookup | grep '^Name: ' | \
sed -e 's/^Name: //'`
fi
[ "$_host2" != "$_host1" ] && return 1
return 0
[ "$_host2" = "$_host1" ]
}
rc_cmd $1

Loading…
Cancel
Save