diff options
Diffstat (limited to 'xpp/utils/zconf/Zaptel/Hardware.pm')
-rw-r--r-- | xpp/utils/zconf/Zaptel/Hardware.pm | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/xpp/utils/zconf/Zaptel/Hardware.pm b/xpp/utils/zconf/Zaptel/Hardware.pm index 321292a..39305fb 100644 --- a/xpp/utils/zconf/Zaptel/Hardware.pm +++ b/xpp/utils/zconf/Zaptel/Hardware.pm @@ -34,7 +34,11 @@ sub devices($) { return @zaptel_devices; } -Zaptel::Hardware::USB->scan_devices; -Zaptel::Hardware::PCI->scan_devices; +sub scan_hardware($) { + my $pack = shift || die; + + Zaptel::Hardware::USB->scan_devices; + Zaptel::Hardware::PCI->scan_devices; +} 1; |