summaryrefslogtreecommitdiffstats
path: root/perl-install/standalone/lsnetdrake
blob: d6233209d60459dfe05a4d2c041688cf18bdb050 (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
#!/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} } @_;
}
209acd7d461ee2453'>2ad2bc9508b90d8be8a0dc571ee75b43be5b0019 /perl-install/share/po/hr.po parent1af0da3b2f30c11993aaefd4a9271768cb2e1bf3 (diff)downloaddrakx-411e0e9d500d91cf111fb93209acd7d461ee2453.tar
drakx-411e0e9d500d91cf111fb93209acd7d461ee2453.tar.gz
drakx-411e0e9d500d91cf111fb93209acd7d461ee2453.tar.bz2
drakx-411e0e9d500d91cf111fb93209acd7d461ee2453.tar.xz
drakx-411e0e9d500d91cf111fb93209acd7d461ee2453.zip
updated pot file
Diffstat (limited to 'perl-install/share/po/hr.po')
-rw-r--r--perl-install/share/po/hr.po25914
1 files changed, 12996 insertions, 12918 deletions
diff --git a/perl-install/share/po/hr.po b/perl-install/share/po/hr.po
index b666ed7e5..7b0ddfeae 100644
--- a/perl-install/share/po/hr.po
+++ b/perl-install/share/po/hr.po