- Ignore lines with desc at start/stop time, this target must be used
manually. - Ignore lines with rfact at stop time, they cannot be stopped. Reported by wiz@.
This commit is contained in:
parent
b7a7f31e43
commit
66c5665356
@ -1,6 +1,6 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# $NetBSD: envsys,v 1.1 2007/07/01 08:01:29 xtraeme Exp $
|
||||
# $NetBSD: envsys,v 1.2 2007/07/25 12:47:44 xtraeme Exp $
|
||||
#
|
||||
|
||||
# PROVIDE: envsys
|
||||
@ -37,6 +37,23 @@ do_envsys()
|
||||
;;
|
||||
esac
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
case "${target}" in
|
||||
*desc)
|
||||
continue
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
stop)
|
||||
case "${target}" in
|
||||
*desc|*rfact)
|
||||
continue
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
esac
|
||||
|
||||
[ -z ${device} ] && err_msg="missing device"
|
||||
[ -z ${target} ] && err_msg="missing target"
|
||||
[ -z ${value} ] && err_msg="missing value"
|
||||
|
Loading…
x
Reference in New Issue
Block a user