From 53b2ff052e3a164154d4ee17f189b213e4600ecb Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Sun, 31 Jan 2010 18:43:34 +0100 Subject: fix nfs server stuff If you need ipv6, you should choose TIRPC flavour. This will install rpcbind, which is similar to portmap. For ipv4 only you can just use nfs-utils without TIRPC and portmap will be installed. Fix some kernel module dependencies. Add a new package rpcbind. --- package/rpcbind/files/rpcbind.init | 28 ++++++++++++++++++++++++++++ package/rpcbind/files/rpcbind.postinst | 5 +++++ 2 files changed, 33 insertions(+) create mode 100644 package/rpcbind/files/rpcbind.init create mode 100644 package/rpcbind/files/rpcbind.postinst (limited to 'package/rpcbind/files') diff --git a/package/rpcbind/files/rpcbind.init b/package/rpcbind/files/rpcbind.init new file mode 100644 index 000000000..d11f01100 --- /dev/null +++ b/package/rpcbind/files/rpcbind.init @@ -0,0 +1,28 @@ +#!/bin/sh +#PKG rpcbind +#INIT 60 + +. /etc/rc.conf + +case $1 in +autostop) ;; +autostart) + test x"${rpcbind:-NO}" = x"NO" && exit 0 + exec sh $0 start + ;; +start) + rpcbind + ;; +stop) + pkill rpcbind + ;; +restart) + sh $0 stop + sh $0 start + ;; +*) + echo "Usage: $0 {start | stop | restart}" + exit 1 + ;; +esac +exit $? diff --git a/package/rpcbind/files/rpcbind.postinst b/package/rpcbind/files/rpcbind.postinst new file mode 100644 index 000000000..7d26be995 --- /dev/null +++ b/package/rpcbind/files/rpcbind.postinst @@ -0,0 +1,5 @@ +#!/bin/sh +. $IPKG_INSTROOT/etc/functions.sh +add_rcconf rpcbind +add_service rpcbind 111/tcp +add_service rpcbind 111/udp -- cgit v1.2.3