also check $rc_force != "" to determine if operation should occur

This commit is contained in:
lukem 2002-03-24 15:52:41 +00:00
parent cc685cb13e
commit cb067e4b20
2 changed files with 5 additions and 4 deletions

View File

@ -1,6 +1,6 @@
#!/bin/sh
#
# $NetBSD: nfslocking,v 1.5 2002/03/22 04:33:59 thorpej Exp $
# $NetBSD: nfslocking,v 1.6 2002/03/24 15:52:41 lukem Exp $
#
# PROVIDE: nfslocking
@ -11,7 +11,8 @@
arg=$1
start_precmd='checkyesno nfs_server || checkyesno nfs_client'
start_precmd='checkyesno nfs_server || checkyesno nfs_client ||
[ -n "$rc_force" ]'
stop_precmd=$start_precmd
status_precmd=$start_precmd

View File

@ -1,6 +1,6 @@
#!/bin/sh
#
# $NetBSD: swap1,v 1.7 2002/03/21 23:08:36 lukem Exp $
# $NetBSD: swap1,v 1.8 2002/03/24 15:52:41 lukem Exp $
#
# PROVIDE: localswap
@ -27,7 +27,7 @@ swap1_start()
#
swap1_stop()
{
if checkyesno swapoff; then
if checkyesno swapoff || [ -n "$rc_force" ]; then
echo "Removing block-type swap devices"
swapctl -U -t blk
fi