- fixed bug in barrybackup GUI that didn't create the target path
[barry.git] / debian / postinst
blob17cb22158b3181c93c54f952ba2486b14641e3f3
1 #!/bin/sh
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
9 # Blackberry devices
11 # Debian stable:
12 #BUS=="usb", SYSFS{idVendor}=="0fca", SYSFS{idProduct}=="0001", SYMLINK+="bb-%k", PROGRAM="/usr/sbin/bcharge"
13 # Ubuntu and Fedora:
14 BUS=="usb", ACTION=="add", SYSFS{idVendor}=="0fca", SYSFS{idProduct}=="0001", SYMLINK+="bb-%k", RUN="/usr/sbin/bcharge"
15 EOF