summaryrefslogtreecommitdiffstats
path: root/perl-install/network/smbnfs.pm
diff options
context:
space:
mode:
authorMystery Man <unknown@mandriva.org>2005-05-25 08:56:46 +0000
committerMystery Man <unknown@mandriva.org>2005-05-25 08:56:46 +0000
commit45e61de16e073594e8532af5b1fff8e76901ee88 (patch)
treeeda23f712150bace0146c6011c39319484f1a715 /perl-install/network/smbnfs.pm
parent2be3766b2c1fafa44da4b93b2851044d977a128a (diff)
downloaddrakx-MDK10-LACIE-restore-2.tar
drakx-MDK10-LACIE-restore-2.tar.gz
drakx-MDK10-LACIE-restore-2.tar.bz2
drakx-MDK10-LACIE-restore-2.tar.xz
drakx-MDK10-LACIE-restore-2.zip
This commit was manufactured by cvs2svn to create tagMDK10-LACIE-restore-2
'MDK10-LACIE-restore-2'.
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 c38903028..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, $o_v) = @_;
- bless($o_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, $fs_type) = @_;
- my $fs_entry = { device => $class->to_dev($e), fs_type => $fs_type };
- fs::mount_options::set_default($fs_entry);
- $fs_entry;
-}
-
-1;
-