diff --git a/tools/openbsd/detach b/tools/openbsd/detach index 6f715e216..8566e5152 100755 --- a/tools/openbsd/detach +++ b/tools/openbsd/detach @@ -9,11 +9,11 @@ case $DEVCLASS in ugen*) BUSNAME=$(cat /var/run/${DEVNAME}.bus) rm -f /var/run/${DEVNAME}.bus - chown root:wheel /dev/"$DEVNAME".* && - chmod 600 /dev/"$DEVNAME".* + chown root:wheel /dev/${DEVNAME}.* && + chmod 600 /dev/${DEVNAME}.* test -n "$BUSNAME" && { - chown root:wheel /dev/"$BUSNAME" && - chmod 600 /dev/"$BUSNAME" + chown root:wheel $BUSNAME && + chmod 600 $BUSNAME } ;; esac