PKGBUILDs/core/udev/ignore-remove.sh

14 lines
156 B
Bash
Raw Normal View History

2010-02-07 05:38:13 +00:00
#!/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