3 VERSION
="$(udevinfo -V | sed "s
/^.
* //")"
5 if [ "$VERSION" -gt 056 ] ; then
6 echo "You seem to have a newer version of udev. Using more modern rules file."
8 cat > /etc
/udev
/rules.d
/10-blackberry.rules
<<EOF
12 #BUS=="usb", SYSFS{idVendor}=="0fca", SYSFS{idProduct}=="0001", SYMLINK+="bb-%k", PROGRAM="/usr/sbin/bcharge"
14 BUS=="usb", ACTION=="add", SYSFS{idVendor}=="0fca", SYSFS{idProduct}=="0001", SYMLINK+="bb-%k", RUN="/usr/sbin/bcharge"