]>
git.zerfleddert.de Git - usb-driver/blob - setup_pcusb
3 if [ "${XILINX}" = "" ]; then
4 if [ "${1}" = "" ]; then
5 echo "Syntax: ${0} /path/to/ISE"
13 if [ "`id -u`" != "0" ]; then
14 echo "You are not root, trying sudo..."
20 echo -n "Looking for USB cable files: "
24 for check
in "${root}/bin/lin64" "${root}/bin/lin"; do
25 if [ -e "${check}/xusbdfwu.rules" ]; then
31 if [ "${dir}" != "" ]; then
38 echo "Copying formware to /usr/share:"
39 for fw
in "${dir}/"xusb
*.hex
; do
40 $ASROOT cp -v "${fw}" "/usr/share/"
43 echo "Installing udev rules:"
44 $ASROOT bash
-c "sed -e 's/TEMPNODE/tempnode/' -e 's/SYSFS/ATTRS/g' -e 's/BUS/SUBSYSTEMS/' \"${dir}/xusbdfwu.rules\" >/etc/udev/rules.d/xusbdfwu.rules"