Correctly set moused_$2_enable when moused_nondefault_enable is set to NO

PR:		conf/92654
MFC after:	3
This commit is contained in:
Matteo Riondato 2006-05-17 11:37:09 +00:00
parent a51851f1cb
commit a697c38c3d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=158692

View File

@ -23,8 +23,7 @@ load_rc_config $name
# expected to be the mouse device.
#
if [ -n "$2" ]; then
checkyesno moused_nondefault_enable &&
eval moused_$2_enable=\${moused_$2_enable-YES}
eval moused_$2_enable=\${moused_$2_enable-${moused_nondefault_enable}}
rcvar=`set_rcvar moused_$2`
pidfile="${_pidprefix}.$2.pid"
_pidarg="-I $pidfile"