summaryrefslogtreecommitdiffstats
path: root/perl-install/standalone/lsnetdrake
blob: 9865cee27e9112d6c51ec1eb2b30855489829da9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/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} } @_;
}
3f90015f0c376eee5f /perl-install/share/po/ta.po parentd4dc3402c77a6d4d080cb12010d90cfbf8d95894 (diff)downloaddrakx-abd636a788d250bd9748d94d0200545755e8a301.tar
drakx-abd636a788d250bd9748d94d0200545755e8a301.tar.gz
drakx-abd636a788d250bd9748d94d0200545755e8a301.tar.bz2
drakx-abd636a788d250bd9748d94d0200545755e8a301.tar.xz
drakx-abd636a788d250bd9748d94d0200545755e8a301.zip
upcase protocol names
Diffstat (limited to 'perl-install/share/po/ta.po')
-rw-r--r--perl-install/share/po/ta.po4
1 files changed, 2 insertions, 2 deletions
diff --git a/perl-install/share/po/ta.po b/perl-install/share/po/ta.po
index a908fd59a..b89d691dc 100644
--- a/perl-install/share/po/ta.po
+++ b/perl-install/share/po/ta.po