From 168fa73a49553a90009b9077607593e9a5a77565 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Fri, 23 Nov 2007 22:22:50 +0000 Subject: Use shell expansion instead of basename --- init.d.BSD/moused | 4 ++-- 1 file 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}" -- cgit v1.2.3