libreschool-nfs/root/etc/e-smith/templates/etc/exports/50libreschool-nfs

13 lines
348 B
Plaintext
Raw Normal View History

2018-12-01 09:14:14 +00:00
#
# 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;
}