diff options
author | damien <damien@mandriva.com> | 2001-08-28 15:04:29 +0000 |
---|---|---|
committer | damien <damien@mandriva.com> | 2001-08-28 15:04:29 +0000 |
commit | 2c349adbcc5062aed193dacda8a9cf65e497adef (patch) | |
tree | 25449bc449d714951703ffea43d841c31e5a2d25 /perl-install/any.pm | |
parent | 406b440a5c6ca5a820c8ac4fc88aef7b5230903a (diff) | |
download | drakx-backup-do-not-use-2c349adbcc5062aed193dacda8a9cf65e497adef.tar drakx-backup-do-not-use-2c349adbcc5062aed193dacda8a9cf65e497adef.tar.gz drakx-backup-do-not-use-2c349adbcc5062aed193dacda8a9cf65e497adef.tar.bz2 drakx-backup-do-not-use-2c349adbcc5062aed193dacda8a9cf65e497adef.tar.xz drakx-backup-do-not-use-2c349adbcc5062aed193dacda8a9cf65e497adef.zip |
updated for devfssumlinkf
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; |