summaryrefslogtreecommitdiffstats
path: root/perl-install/network/smbnfs.pm
diff options
context:
space:
mode:
authorMystery Man <unknown@mandriva.org>2002-08-29 08:27:03 +0000
committerMystery Man <unknown@mandriva.org>2002-08-29 08:27:03 +0000
commite3000d1c3652d63caebb334ab96251875e875b5c (patch)
treef1011fca62406be25bdce4ba865d3c0cf9d933e1 /perl-install/network/smbnfs.pm
parent71180d5532cd2fe1853cc32d8826a04644e2ec08 (diff)
downloaddrakx-1_1_9_25mdk.tar
drakx-1_1_9_25mdk.tar.gz
drakx-1_1_9_25mdk.tar.bz2
drakx-1_1_9_25mdk.tar.xz
drakx-1_1_9_25mdk.zip
This commit was manufactured by cvs2svn to create tag 'V1_1_9_25mdk'.V1_1_9_25mdk
Diffstat (limited to 'perl-install/network/smbnfs.pm')
-rw-r--r--perl-install/network/smbnfs.pm45
1 files changed, 0 insertions, 45 deletions
diff --git a/perl-install/network/smbnfs.pm b/perl-install/network/smbnfs.pm
deleted file mode 100644
index 8bd29ea92..000000000
--- a/perl-install/network/smbnfs.pm
+++ /dev/null
@@ -1,45 +0,0 @@
-package network::smbnfs; # $Id$
-
-use strict;
-use diagnostics;
-
-use fs;
-
-
-sub new {
- my ($class, $v) = @_;
- bless($v || {}, $class);
-}
-
-sub server_to_string {
- my ($class, $server) = @_;
- $server->{name} || $server->{ip};
-}
-sub comment_to_string {
- my ($class, $comment) = @_;
- $comment;
-}
-sub to_dev {
- my ($class, $e) = @_;
- $class->to_dev_raw($class->server_to_string($e->{server}), $e->{name} || $e->{ip});
-}
-sub to_string {
- my ($class, $e) = @_;
- my $comment = $class->comment_to_string($e->{comment});
- ($e->{name} || $e->{ip}) . ($comment ? " ($comment)" : '');
-}
-
-sub to_fullstring {
- my ($class, $e) = @_;
- my $comment = $class->comment_to_string($e->{comment});
- $class->to_dev($e) . ($comment ? " ($comment)" : '');
-}
-sub to_fstab_entry_raw {
- my ($class, $e, $type) = @_;
- my $fs_entry = { device => $class->to_dev($e), type => $type };
- fs::set_default_options($fs_entry);
- $fs_entry;
-}
-
-1;
-