summaryrefslogtreecommitdiff
path: root/package/nfs-utils/files/nfs-utils.postinst
blob: 3cd85b088f3ea0e73b1405dec53efa13822d27df (plain)
1
2
3
4
5
6
7
8
9
10
#!/bin/sh
. $IPKG_INSTROOT/etc/functions.sh
add_service nfs 2049/tcp
add_service nfs 2049/udp
gid=$(get_next_gid)
add_group nfs $gid
add_user nfs $(get_next_uid) $gid /var/lib/nfs
gid=$(get_next_gid)
add_group nfsnobody $gid
add_user nfsnobody $(get_next_uid) $gid /var/lib/nfs