The easy thing to do is to just add that word into the language file for the rc_nfsd script. Any word or wording you want can be defined on an individual package basis. Also for a single word, online translators do a pretty good job.
The one problem that I see in your modification is the rcp.portmap is checked to see if it is running and if it is not then nothing is done, it also does not address if any of the other binaries have died. So you probably should use something like this instead.
- Code: Select all
rst(){
echo -n "$RC_RESTART nfsd...$HT"
runchk rpc.portmap
[ $? = 0 ] && killall rpc.portmap -HUP || rpc.portmap
runchk rpc.mountd
[ $? = 0 ] && killall rpc.mountd -HUP || rpc.mountd
killall rpc.nfsd
sleep 1
rpc.nfsd
= $?
}
Also looking at the package and the multiple binaries the start and stop sections should also probably be modified to chack the other binaries as well. But that is probably why it is a 'test' package and you would be the tester (guinea pig).

If you are afraid that you might make a mistake. The chances are high that you will never learn anything.