summaryrefslogtreecommitdiffstats
path: root/perl-install/network/adsl.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/network/adsl.pm')
-rw-r--r--perl-install/network/adsl.pm6
1 files changed, 5 insertions, 1 deletions
diff --git a/perl-install/network/adsl.pm b/perl-install/network/adsl.pm
index 49c33d707..98d6c7414 100644
--- a/perl-install/network/adsl.pm
+++ b/perl-install/network/adsl.pm
@@ -318,8 +318,12 @@ TYPE=$kind
write_cnx_script($netc);
unless ($::isStandalone) {
+ $::isInstall && eval {
+ require fs;
+ fs::mount("/proc/bus/usb", "$::prefix/proc/bus/usb", 'usbdevfs');
+ } or log::l("failed to mount usbdevfs");
$modems{$adsl_device}{modules} && eval { modules::load(@{$modems{$adsl_device}{modules}}) }
- or log::l("failled to load " . join('', @{$modems{$adsl_device}{modules}}), " modules: $@");
+ or log::l("failed to load " . join('', @{$modems{$adsl_device}{modules}}), " modules: $@");
$modems{$adsl_device}{start} and run_program::rooted($::prefix, $modems{$adsl_device}{start});
}
}