aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--init.d.BSD/moused4
1 files changed, 2 insertions, 2 deletions
diff --git a/init.d.BSD/moused b/init.d.BSD/moused
index 70b0f0cf..4610f20b 100644
--- a/init.d.BSD/moused
+++ b/init.d.BSD/moused
@@ -44,8 +44,8 @@ start() {
if [ -z "${moused_device}" ] ; then
local dev=
for dev in /dev/psm[0-9]* /dev/ums[0-9]* ; do
- [ -e "${dev}" ] || continue
- [ -e /var/run/moused-$(basename "${dev}").pid ] && continue
+ [ -c "${dev}" ] || continue
+ [ -e /var/run/moused-"${dev##*/}".pid ] && continue
moused_device=${dev}
eindent
einfo "Using mouse on ${moused_device}"