summaryrefslogtreecommitdiffstats
path: root/perl-install/standalone/lsnetdrake
diff options
context:
space:
mode:
authorMystery Man <unknown@mandriva.org>2002-07-23 11:21:56 +0000
committerMystery Man <unknown@mandriva.org>2002-07-23 11:21:56 +0000
commit5069ba07d9cdec0393b1e131b9e440bc827087cd (patch)
tree4b35e1f759c5c2e1af4e44f5cde86be566a3ba7b /perl-install/standalone/lsnetdrake
parent127a73d935d78af53d3dadd05d4636f6b717976d (diff)
downloaddrakx-5069ba07d9cdec0393b1e131b9e440bc827087cd.tar
drakx-5069ba07d9cdec0393b1e131b9e440bc827087cd.tar.gz
drakx-5069ba07d9cdec0393b1e131b9e440bc827087cd.tar.bz2
drakx-5069ba07d9cdec0393b1e131b9e440bc827087cd.tar.xz
drakx-5069ba07d9cdec0393b1e131b9e440bc827087cd.zip
This commit was manufactured by cvs2svn to create tag 'V1_1_8_11mdk'.V1_1_8_11mdk
Diffstat (limited to 'perl-install/standalone/lsnetdrake')
-rwxr-xr-xperl-install/standalone/lsnetdrake29
1 files changed, 0 insertions, 29 deletions
diff --git a/perl-install/standalone/lsnetdrake b/perl-install/standalone/lsnetdrake
deleted file mode 100755
index 9865cee27..000000000
--- a/perl-install/standalone/lsnetdrake
+++ /dev/null
@@ -1,29 +0,0 @@
-#!/usr/bin/perl
-
-use lib qw(/usr/lib/libDrakX);
-use network::nfs;
-use network::smb;
-
-"@ARGV" =~ /-h/ and die "usage: lsnetdrake [-h] [--nfs] [--smb]\n";
-
-my $nfs = !@ARGV || "@ARGV" =~ /-(nfs)/;
-my $smb = !@ARGV || "@ARGV" =~ /-(smb)/;
-
-$| = 1;
-$ENV{PATH} = "/sbin:/usr/sbin:$ENV{PATH}";
-
-my @l;
-push @l, network::nfs->new if $nfs;
-push @l, network::smb->new if $smb;
-
-foreach my $class (@l) {
- foreach my $server (sort_names($class->find_servers)) {
- foreach (sort_names($class->find_exports($server))) {
- print $class->to_fullstring($_), "\n";
- }
- }
-}
-
-sub sort_names {
- sort { $a->{name} cmp $b->{name} } @_;
-}