diff options
Diffstat (limited to 'package/rpcbind/files')
| -rw-r--r-- | package/rpcbind/files/rpcbind.init | 5 | ||||
| -rw-r--r-- | package/rpcbind/files/rpcbind.postinst | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/package/rpcbind/files/rpcbind.init b/package/rpcbind/files/rpcbind.init index 4f527b96b..efc957fd3 100644 --- a/package/rpcbind/files/rpcbind.init +++ b/package/rpcbind/files/rpcbind.init @@ -7,13 +7,14 @@ case $1 in autostop) ;; autostart) test x"${rpcbind:-NO}" = x"NO" && exit 0 + test x"$rpcbind" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start exec sh $0 start ;; start) - /usr/bin/rpcbind + /usr/sbin/rpcbind ;; stop) - kill $(pgrep -f /usr/bin/rpcbind) + kill $(pgrep -f /usr/sbin/rpcbind) ;; restart) sh $0 stop diff --git a/package/rpcbind/files/rpcbind.postinst b/package/rpcbind/files/rpcbind.postinst index 7d26be995..03bfd0dbc 100644 --- a/package/rpcbind/files/rpcbind.postinst +++ b/package/rpcbind/files/rpcbind.postinst @@ -1,5 +1,5 @@ #!/bin/sh . $IPKG_INSTROOT/etc/functions.sh -add_rcconf rpcbind +add_rcconf rpcbind NO add_service rpcbind 111/tcp add_service rpcbind 111/udp |
