Forum Discussion
Altera_Forum
Honored Contributor
14 years agoI ended up using the following rules and wrote a simple script to handle the strings correctly. Here are the rules:
/etc/udev/rules.d/52-usbblaster.rules (all on one line):
# USB-Blaster
BUS=="usb", SYSFS{idVendor}=="09fb", SYSFS{idProduct}=="6001", MODE="0666",PROGRAM="/etc/udev/scripts/altera_usb_blaster.sh %k",
RUN+="/bin/chmod 0666 %c"
/etc/udev/scripts/altera_usb_blaster.sh
# !/bin/bash
#
# Assign passed parameter containing to local variant
a=$1
# Strip out unneeded strings and convert
a=${a//usbdev};a=${a//_ep*};a=${a//./' '};
# Output format of USB blaster location
printf /proc/bus/usb/%03i/%03i $a
If anyone has a better solution, please advise. --- Quote Start --- ps. Please post OS and kernel version in future replies if you still can't get this to work. --- Quote End --- The kernel version is "Linux version 2.6.18-238.5.1.el5." The OS is as identified in the title, scientific linux 5.4.