nfs-utils.postinst 433 B

12345678910111213
  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
  11. gid=$(get_next_gid)
  12. add_group nfsnobody $gid
  13. add_user nfsnobody $(get_next_uid) $gid /var/lib/nfs