diff options
author | Roy Marples <roy@marples.name> | 2007-11-23 22:22:50 +0000 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2007-11-23 22:22:50 +0000 |
commit | 168fa73a49553a90009b9077607593e9a5a77565 (patch) | |
tree | 725be5ac336d4299e041831f9a78a18954561e3d /init.d.BSD/moused | |
parent | 6bc37fd203298f8467d70da4d7bbc37a2e2192bb (diff) |
Use shell expansion instead of basename
Diffstat (limited to 'init.d.BSD/moused')
-rw-r--r-- | init.d.BSD/moused | 4 |
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}" |