#!/bin/bash # Copyright (c) 2000-2018 Synology Inc. All rights reserved. EnableCustomPort=`/bin/get_key_value /etc/nfs/syno_nfs_conf nfs_custom_port_enable` StatdPort=`/bin/get_key_value /etc/nfs/syno_nfs_conf statd_port` case $1 in start) if [ x$EnableCustomPort == xyes ] && [ x$StatdPort != x ] ; then /usr/sbin/statd -p $StatdPort else /usr/sbin/statd -p 662 fi ;; *) echo "Usages: $0 [start]" ;; esac