File cpci_reprogram.patch of Package netfpga
--- NF2/lib/scripts/cpci_reprogram/cpci_reprogram.pl 2009-01-16 13:54:02.000000000 -0800
+++ /usr/sbin/cpci_reprogram.pl 2008-08-06 15:10:10.000000000 -0700
@@ -10,11 +10,11 @@
use Getopt::Long;
# Location of binaries
-my $bindir = '/usr/local/bin';
-my $sbindir = '/usr/local/sbin';
+my $bindir = '/usr/bin';
+my $sbindir = '/usr/sbin';
# Location of bitfiles
-my $bitfiledir = '/usr/local/NF2/bitfiles';
+my $bitfiledir = '/usr/share/netfpga/bitfiles';
# Bitfiles
my $cpci = 'CPCI_2.1.bit';
@@ -211,9 +211,12 @@
# Procoess the output
foreach my $line (split(/\n/, $output)) {
my @words = split(/\s+/, $line);
+
+ my $len = scalar(@words);
+ print "length: $len line: @words\n";
# Search for the NetFPGA device ID
- if ($words[5] eq $NF2_device_id)
+ if ($words[4] eq $NF2_device_id)
{
push (@device_list, $words[0]);
}