Deleted Added
full compact
rc.subr (219612) rc.subr (220760)
1# $NetBSD: rc.subr,v 1.67 2006/10/07 11:25:15 elad Exp $
1# $NetBSD: rc.subr,v 1.67 2006/10/07 11:25:15 elad Exp $
2# $FreeBSD: head/etc/rc.subr 219612 2011-03-13 16:27:36Z dougb $
2# $FreeBSD: head/etc/rc.subr 220760 2011-04-17 22:31:36Z dougb $
3#
4# Copyright (c) 1997-2004 The NetBSD Foundation, Inc.
5# All rights reserved.
6#
7# This code is derived from software contributed to The NetBSD Foundation
8# by Luke Mewburn.
9#
10# Redistribution and use in source and binary forms, with or without

--- 635 unchanged lines hidden (view full) ---

646 if [ "$_elem" != "$rc_arg" ]; then
647 continue
648 fi
649 # if ${rcvar} is set, $1 is not "rcvar"
650 # and ${rc_pid} is not set, then run
651 # checkyesno ${rcvar}
652 # and return if that failed
653 #
3#
4# Copyright (c) 1997-2004 The NetBSD Foundation, Inc.
5# All rights reserved.
6#
7# This code is derived from software contributed to The NetBSD Foundation
8# by Luke Mewburn.
9#
10# Redistribution and use in source and binary forms, with or without

--- 635 unchanged lines hidden (view full) ---

646 if [ "$_elem" != "$rc_arg" ]; then
647 continue
648 fi
649 # if ${rcvar} is set, $1 is not "rcvar"
650 # and ${rc_pid} is not set, then run
651 # checkyesno ${rcvar}
652 # and return if that failed
653 #
654 if [ -n "${rcvar}" -a "$rc_arg" != "rcvar" -a -z "${rc_pid}" ]; then
654 if [ -n "${rcvar}" -a "$rc_arg" != "rcvar" -a "$rc_arg" != "stop" ] ||
655 [ -n "${rcvar}" -a "$rc_arg" = "stop" -a -z "${rc_pid}" ]; then
655 if ! checkyesno ${rcvar}; then
656 if [ -n "${rc_quiet}" ]; then
657 return 0
658 fi
659 echo -n "Cannot '${rc_arg}' $name. Set ${rcvar} to "
660 echo -n "YES in /etc/rc.conf or use 'one${rc_arg}' "
661 echo "instead of '${rc_arg}'."
662 return 0

--- 1054 unchanged lines hidden ---
656 if ! checkyesno ${rcvar}; then
657 if [ -n "${rc_quiet}" ]; then
658 return 0
659 fi
660 echo -n "Cannot '${rc_arg}' $name. Set ${rcvar} to "
661 echo -n "YES in /etc/rc.conf or use 'one${rc_arg}' "
662 echo "instead of '${rc_arg}'."
663 return 0

--- 1054 unchanged lines hidden ---