#!/bin/bash
DEVICE=$1

# Default device value
: ${DEVICE:="/dev/input/mouse0"}

test -c "$DEVICE"
exit $?



syntax highlighted by Code2HTML, v. 0.9.1