nfs-utils.postinst 335 B

12345678910
  1. #!/bin/sh
  2. . $IPKG_INSTROOT/etc/functions.sh
  3. add_rcconf "kernel nfs server" nfs_server NO
  4. add_rcconf "kernel nfs client (v4)" nfs_client NO
  5. add_rcconf "kernel nfs server version" nfs_server_version 3
  6. add_service nfs 2049/tcp
  7. add_service nfs 2049/udp
  8. gid=$(get_next_gid)
  9. add_group nfs $gid
  10. add_user nfs $(get_next_uid) $gid /var/lib/nfs