nfs-utils.postinst 278 B

12345678910
  1. #!/bin/sh
  2. . $IPKG_INSTROOT/etc/functions.sh
  3. add_service nfs 2049/tcp
  4. add_service nfs 2049/udp
  5. gid=$(get_next_gid)
  6. add_group nfs $gid
  7. add_user nfs $(get_next_uid) $gid /var/lib/nfs
  8. gid=$(get_next_gid)
  9. add_group nfsnobody $gid
  10. add_user nfsnobody $(get_next_uid) $gid /var/lib/nfs