13 lines
348 B
Plaintext
13 lines
348 B
Plaintext
#
|
|
# 50libreschool-nfs
|
|
#
|
|
{
|
|
use esmith::InterfacesDB;
|
|
my $ndb = esmith::InterfacesDB->open_ro() || return;
|
|
my $LocalIP = $ndb->green()->prop('ipaddr') || return;
|
|
my $LocalNM = $ndb->green()->prop('netmask') || return;
|
|
sprintf "/var/lib/nethserver/home\t%s/%s(rw,no_root_squash,sync,no_subtree_check)\n", $LocalIP, $LocalNM;
|
|
}
|
|
|
|
|