bsdinstall services: Improve mouse configuration

bsdinstall(8) has an option to enable moused support.
However, if it is not selected, moused is still started
through the configuration of nondefault devices.
So, automatically add the moused_nondefault_enable="NO"
setting to rc.conf unless moused support is selected.

PR:			227999
Reported by:		bcran
Reviewed by:		bapt
Differential Revision:	https://reviews.freebsd.org/D35193
This commit is contained in:
Alfonso S. Siciliano 2022-05-21 16:37:53 +02:00
parent 0d6600b579
commit 8cfbeb56aa
No known key found for this signature in database
GPG Key ID: 3F9EEFACFD371E37

View File

@ -61,11 +61,17 @@ if [ $retval -ne $BSDDIALOG_OK ]; then
fi
havedump=
havemouse=
for daemon in $DAEMONS; do
[ "$daemon" = "dumpdev" ] && havedump=1 continue
[ "$daemon" = "moused" ] && havemouse=1
echo ${daemon}_enable=\"YES\" >> $BSDINSTALL_TMPETC/rc.conf.services
done
if [ ! "$havemouse" ]; then
echo moused_nondefault_enable=\"NO\" >> $BSDINSTALL_TMPETC/rc.conf.services
fi
echo '# Set dumpdev to "AUTO" to enable crash dumps, "NO"' \
'to disable' >> $BSDINSTALL_TMPETC/rc.conf.services
if [ "$havedump" ]; then