if [ ! -f etc/sysconfig/nfs-server ]; then cat > etc/sysconfig/nfs-server << "EOF" PORT="2049" PROCESSES="8" QUOTAS="no" KILLDELAY="10" EOF fi if [ ! -f /etc/exports ]; then cat > /etc/exports << "EOF" # /etc/exports - exports(5) - directories exported to NFS clients # # Example for NFSv2 and NFSv3: # /srv/home hostname1(rw,sync) hostname2(ro,sync) # Example for NFSv4: # /srv/nfs4 hostname1(rw,sync,fsid=0) # /srv/nfs4/home hostname1(rw,sync,nohide) # Using Kerberos and integrity checking: # /srv/nfs4 *(rw,sync,sec=krb5i,fsid=0) # /srv/nfs4/home *(rw,sync,sec=krb5i,nohide) # # Use `exportfs -arv` to reload. EOF fi