#!/usr/bin/perl
$version = 0.15 ;

# nfsAddExports - Export a filesystem

# --- Initialization ---
($data) = @ARGV ;

if($data eq "-v") {
    print "$version\n" ;
    exit(0) ;
}
 
# Discover OS type and run the appropriate command
chop($os = `uname -s`) ;

if($os eq "Linux") {
    `killall -HUP rpc.mountd` ;
} elsif($os eq "SunOS") {
    `exportfs -a -v` ;
} elsif($os eq "Solaris") {
    `shareall` ;
} 

print "Exporting $data\n" ;

exit 0 ;


