mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-18 22:54:00 +00:00
13 lines
156 B
Bash
Executable file
13 lines
156 B
Bash
Executable file
#!/bin/sh
|
|
|
|
if [ -z "$1" ]; then
|
|
exit 1
|
|
fi
|
|
|
|
for f in ${DEVNAME} ${DEVLINKS}; do
|
|
if [ -e "/lib/udev/devices/${f#$1}" ]; then
|
|
exit 0
|
|
fi
|
|
done
|
|
|
|
exit 1
|