diff options
Diffstat (limited to 'perl-install/any.pm')
-rw-r--r-- | perl-install/any.pm | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/perl-install/any.pm b/perl-install/any.pm index 87545a2a5..2696017d2 100644 --- a/perl-install/any.pm +++ b/perl-install/any.pm @@ -400,7 +400,7 @@ sub pppConfig { $modem or return; if ($modem->{device} ne "/dev/modem") { - symlinkf($modem->{device}, "$prefix/dev/modem") ? add_devfslink($prefix, "$prefix/dev/modem") : log::l("creation of $prefix/dev/modem failed") + devfssymlinkf($modem->{device}, 'modem', $prefix) or log::l("creation of $prefix/dev/modem failed") } $in->do_pkgs->install('ppp') if !$::testing; @@ -829,9 +829,9 @@ sub report_bug { map_index { even($::i) ? header($_) : $_ } @other; } -sub add_devfslink { - my ($prefix, $link) = @_; - commands::cp("-f", $link, "$prefix/lib/dev-state/"); +sub devfssymlinkf { + my ($if, $of, $prefix) = @_; + symlinkf($if, "$prefix/$_") foreach ("dev/$of", "lib/dev-state/$of"); } 1; |