#!/bin/sh

. config/options $1

add_user rpcuser x 29 29 "RPC Service User" "/var/lib/nfs" "/bin/sh"
add_group rpcuser 29

mkdir -p $INSTALL/sbin
  cp $PKG_BUILD/utils/mount/mount.nfs $INSTALL/sbin/
    ln -sf mount.nfs $INSTALL/sbin/mount.nfs4
    ln -sf mount.nfs $INSTALL/sbin/umount.nfs
    ln -sf mount.nfs $INSTALL/sbin/umount.nfs4

mkdir -p $INSTALL/usr/sbin
  cp $PKG_BUILD/utils/statd/statd $INSTALL/usr/sbin/rpc.statd
  cp $PKG_BUILD/utils/statd/start-statd $INSTALL/usr/sbin/
    chmod +x $INSTALL/usr/sbin/start-statd

mkdir -p $INSTALL/etc
  cp $PKG_DIR/config/protocols $INSTALL/etc
