nfs-utils.postinst 285 B

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