summaryrefslogtreecommitdiffstats
path: root/perl-install/standalone/lsnetdrake
diff options
context:
space:
mode:
authorMystery Man <unknown@mandriva.org>2004-06-15 16:50:22 +0000
committerMystery Man <unknown@mandriva.org>2004-06-15 16:50:22 +0000
commit8ea9beca90c410e12593fedfb6e741dbdf8795d0 (patch)
tree544a377d0ea57462110009fbbbfd14473390e2a1 /perl-install/standalone/lsnetdrake
parentb5dc638815c772056e07cd013f5b1674900456d5 (diff)
downloaddrakx-topic/mandrakesoft.tar
drakx-topic/mandrakesoft.tar.gz
drakx-topic/mandrakesoft.tar.bz2
drakx-topic/mandrakesoft.tar.xz
drakx-topic/mandrakesoft.zip
This commit was manufactured by cvs2svn to create branch 'mandrakesoft'.topic/mandrakesoft
Diffstat (limited to 'perl-install/standalone/lsnetdrake')
-rwxr-xr-xperl-install/standalone/lsnetdrake27
1 files changed, 0 insertions, 27 deletions
diff --git a/perl-install/standalone/lsnetdrake b/perl-install/standalone/lsnetdrake
deleted file mode 100755
index d6233209d..000000000
--- a/perl-install/standalone/lsnetdrake
+++ /dev/null
@@ -1,27 +0,0 @@
-#!/usr/bin/perl
-
-use lib qw(/usr/lib/libDrakX);
-use standalone;
-use network::nfs;
-use network::smb;
-use MDK::Common::Func qw(if_);
-
-"@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}";
-
-foreach my $class (if_($nfs, network::nfs->new), if_($smb, network::smb->new)) {
- foreach my $server (sort_names($class->find_servers)) {
- foreach (sort_names(eval { $class->find_exports($server) })) {
- print $class->to_fullstring($_), "\n";
- }
- }
-}
-
-sub sort_names {
- sort { $a->{name} cmp $b->{name} } @_;
-}