summaryrefslogtreecommitdiff
path: root/xpp/perl_modules/Dahdi/Hardware
diff options
context:
space:
mode:
Diffstat (limited to 'xpp/perl_modules/Dahdi/Hardware')
-rw-r--r--xpp/perl_modules/Dahdi/Hardware/PCI.pm2
-rw-r--r--xpp/perl_modules/Dahdi/Hardware/USB.pm4
2 files changed, 3 insertions, 3 deletions
diff --git a/xpp/perl_modules/Dahdi/Hardware/PCI.pm b/xpp/perl_modules/Dahdi/Hardware/PCI.pm
index f6b3901..a1ef6bb 100644
--- a/xpp/perl_modules/Dahdi/Hardware/PCI.pm
+++ b/xpp/perl_modules/Dahdi/Hardware/PCI.pm
@@ -170,7 +170,7 @@ sub readfile($) {
sub scan_devices($) {
my @devices;
- while(</sys/bus/pci/devices/*>) {
+ while(<$Dahdi::sys_base/bus/pci/devices/*>) {
m,([^/]+)$,,;
my $name = $1;
my $l = readlink $_ || die;
diff --git a/xpp/perl_modules/Dahdi/Hardware/USB.pm b/xpp/perl_modules/Dahdi/Hardware/USB.pm
index 8b84243..711f977 100644
--- a/xpp/perl_modules/Dahdi/Hardware/USB.pm
+++ b/xpp/perl_modules/Dahdi/Hardware/USB.pm
@@ -135,7 +135,7 @@ sub scan_devices_sysfs($) {
my $pack = shift || die;
my @devices = ();
- while (</sys/bus/usb/devices/*-*>) {
+ while (<$Dahdi::sys_base/bus/usb/devices/*-*>) {
next unless -r "$_/idVendor"; # endpoints
# Older kernels, e.g. 2.6.9, don't have the attribute
@@ -165,7 +165,7 @@ sub scan_devices_sysfs($) {
sub scan_devices($) {
my $pack = shift || die;
- my $usb_device_list = "/proc/bus/usb/devices";
+ my $usb_device_list = "$Dahdi::proc_usb_base/devices";
return $pack->scan_devices_sysfs() unless (-r $usb_device_list);
my @devices;