[oe] [meta-oe][PATCH] tftpd-hpa: fix premature exit

Joe MacDonald joe at deserted.net
Fri Oct 18 16:34:47 UTC 2013


Merged, thanks.

-J.

[[oe] [meta-oe][PATCH] tftpd-hpa: fix premature exit] On 13.10.12 (Sat 10:04) David Turgeon wrote:

> standalone daemon exits as recipe installs file as tftpd-hpa
> 
> * Changed script so it can consult /etc/default, as daemon name may be
>  subject to change.
> * Changed the default name to match the recipe
> 
> Signed-off-by: David Turgeon <david.turgeon at gmail.com>
> ---
>  .../recipes-daemons/tftp-hpa/files/init            |   13 +++++++------
>  1 file changed, 7 insertions(+), 6 deletions(-)
> 
> diff --git a/meta-networking/recipes-daemons/tftp-hpa/files/init b/meta-networking/recipes-daemons/tftp-hpa/files/init
> index 5ad8c52..9e18436 100644
> --- a/meta-networking/recipes-daemons/tftp-hpa/files/init
> +++ b/meta-networking/recipes-daemons/tftp-hpa/files/init
> @@ -18,20 +18,21 @@ set -e
>  
>  PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
>  DESC="HPA's tftpd"
> -NAME=in.tftpd
> -DAEMON=/usr/sbin/$NAME
> -PIDFILE=/var/run/$NAME.pid
> +NAME=in.tftpd-hpa
>  SCRIPTNAME=/etc/init.d/tftpd-hpa
>  
> -# Gracefully exit if the package has been removed.
> -test -x $DAEMON || exit 0
> -
>  # Read config file if it is present.
>  if [ -r /etc/default/tftpd-hpa ]
>  then
>  	. /etc/default/tftpd-hpa
>  fi
>  
> +DAEMON=/usr/sbin/$NAME
> +PIDFILE=/var/run/$NAME.pid
> +
> +# Gracefully exit if the package has been removed.
> +test -x $DAEMON || exit 0
> +
>  if [ "$RUN_DAEMON" != "yes" ] ; then
>           echo "tftpd-hpa disabled in /etc/default/tftpd-hpa"
>  	 exit 0
-- 
-Joe MacDonald.
:wq
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.openembedded.org/pipermail/openembedded-devel/attachments/20131018/ccb41801/attachment-0002.sig>


More information about the Openembedded-devel mailing list