aboutsummaryrefslogtreecommitdiff
path: root/libexec
diff options
context:
space:
mode:
authorVladimir Kondratyev <wulf@FreeBSD.org>2025-09-21 13:14:49 +0000
committerVladimir Kondratyev <wulf@FreeBSD.org>2025-09-21 13:14:49 +0000
commit66e7f048f0c8e9e726738fadd9dc819bfda3cbfe (patch)
treefd02b40ae78bb061779844b714d51239f133dc8e /libexec
parent1335bf5ce1c9f0bf15c1fbed502f49e5a4950e32 (diff)
Diffstat (limited to 'libexec')
-rw-r--r--libexec/rc/rc.conf4
-rwxr-xr-xlibexec/rc/rc.d/moused11
2 files changed, 8 insertions, 7 deletions
diff --git a/libexec/rc/rc.conf b/libexec/rc/rc.conf
index b5482f081ce5..1220d060232d 100644
--- a/libexec/rc/rc.conf
+++ b/libexec/rc/rc.conf
@@ -586,11 +586,11 @@ font8x14="NO" # font 8x14 from /usr/share/{syscons,vt}/fonts/* (or NO).
font8x8="NO" # font 8x8 from /usr/share/{syscons,vt}/fonts/* (or NO).
blanktime="300" # blank time (in seconds) or "NO" to turn it off.
saver="NO" # screen saver: Uses /boot/kernel/${saver}_saver.ko
-moused_nondefault_enable="NO" # Treat non-default mice as enabled unless
+moused_nondefault_enable="YES" # Treat non-default mice as enabled unless
# specifically overridden in rc.conf(5).
moused_enable="NO" # Run the mouse daemon.
moused_type="evdev" # See man page for rc.conf(5) for available settings.
-moused_port="auto" # Set to your mouse port.
+moused_port="/dev/psm0" # Set to your mouse port.
moused_flags="" # Any additional flags to moused.
mousechar_start="NO" # if 0xd0-0xd3 default range is occupied in your
# language code table, specify alternative range
diff --git a/libexec/rc/rc.d/moused b/libexec/rc/rc.d/moused
index 64e4f815eea9..35a26bd57275 100755
--- a/libexec/rc/rc.d/moused
+++ b/libexec/rc/rc.d/moused
@@ -28,9 +28,10 @@ moused_svcj="NO"
# expected to be the mouse device.
#
if [ -n "$2" ]; then
- eval moused_$2_enable=\${moused_$2_enable-${moused_nondefault_enable}}
- rcvar="moused_${2}_enable"
- pidfile="${pidprefix}.$2.pid"
+ ms=`basename $2`
+ eval moused_${ms}_enable=\${moused_${ms}_enable-${moused_nondefault_enable}}
+ rcvar="moused_${ms}_enable"
+ pidfile="${pidprefix}.${ms}.pid"
pidarg="-I $pidfile"
fi
@@ -45,10 +46,10 @@ moused_start()
# the moused_port variable, which if not defined sets it to the
# passed in device name.
#
- ms=$1
+ ms=`basename $1`
if [ -n "$ms" ]; then
eval myflags=\${moused_${ms}_flags-$moused_flags}
- eval myport=\${moused_${ms}_port-/dev/$ms}
+ eval myport=\${moused_${ms}_port-/dev/$1}
eval mytype=\${moused_${ms}_type-$moused_type}
if [ -n "$mytype" ] && check_kern_features evdev_support; then
typearg="-t ${mytype}"