* [Buildroot] [PATCH 1/1] package/tftpd: add include of config file to init script
@ 2022-04-28 13:42 Andreas Ehmanns
2022-04-28 15:45 ` Yann E. MORIN
2022-05-27 9:43 ` Peter Korsgaard
0 siblings, 2 replies; 3+ messages in thread
From: Andreas Ehmanns @ 2022-04-28 13:42 UTC (permalink / raw)
To: buildroot; +Cc: Andreas Ehmanns
HPA's tftp server init script does not support include of a
configuration file. So changing daemon parameters would cause
a modification of the init script.
Similar to NFS, dropbear, DHCP, SNMP and other network services
in buildroot, this patch adds an include of /etc/default/tftpd
to the init script. So any user can change the default behaviour
by adding its own configuration file instead of changing the init
script.
Signed-off-by: Andreas Ehmanns <universeiii@gmx.de>
---
package/tftpd/S80tftpd-hpa | 2 ++
1 file changed, 2 insertions(+)
diff --git a/package/tftpd/S80tftpd-hpa b/package/tftpd/S80tftpd-hpa
index 4e8361faa7..8ae15150a1 100644
--- a/package/tftpd/S80tftpd-hpa
+++ b/package/tftpd/S80tftpd-hpa
@@ -11,6 +11,8 @@ DAEMON=/usr/sbin/$NAME
PIDFILE=/var/run/$NAME.pid
SCRIPTNAME=/etc/init.d/S80tftpd-hpa
+[ -r "/etc/default/$NAME" ] && . "/etc/default/$NAME"
+
#
# Function that starts the daemon/service.
#
--
2.26.2
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [Buildroot] [PATCH 1/1] package/tftpd: add include of config file to init script
2022-04-28 13:42 [Buildroot] [PATCH 1/1] package/tftpd: add include of config file to init script Andreas Ehmanns
@ 2022-04-28 15:45 ` Yann E. MORIN
2022-05-27 9:43 ` Peter Korsgaard
1 sibling, 0 replies; 3+ messages in thread
From: Yann E. MORIN @ 2022-04-28 15:45 UTC (permalink / raw)
To: Andreas Ehmanns; +Cc: buildroot
Andreas, All,
On 2022-04-28 15:42 +0200, Andreas Ehmanns spake thusly:
> HPA's tftp server init script does not support include of a
> configuration file. So changing daemon parameters would cause
> a modification of the init script.
> Similar to NFS, dropbear, DHCP, SNMP and other network services
> in buildroot, this patch adds an include of /etc/default/tftpd
> to the init script. So any user can change the default behaviour
> by adding its own configuration file instead of changing the init
> script.
>
> Signed-off-by: Andreas Ehmanns <universeiii@gmx.de>
Applied to master, thanks.
Regards,
Yann E. MORIN.
> ---
> package/tftpd/S80tftpd-hpa | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/package/tftpd/S80tftpd-hpa b/package/tftpd/S80tftpd-hpa
> index 4e8361faa7..8ae15150a1 100644
> --- a/package/tftpd/S80tftpd-hpa
> +++ b/package/tftpd/S80tftpd-hpa
> @@ -11,6 +11,8 @@ DAEMON=/usr/sbin/$NAME
> PIDFILE=/var/run/$NAME.pid
> SCRIPTNAME=/etc/init.d/S80tftpd-hpa
>
> +[ -r "/etc/default/$NAME" ] && . "/etc/default/$NAME"
> +
> #
> # Function that starts the daemon/service.
> #
> --
> 2.26.2
>
> _______________________________________________
> buildroot mailing list
> buildroot@buildroot.org
> https://lists.buildroot.org/mailman/listinfo/buildroot
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ |
| +33 561 099 427 `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
'------------------------------^-------^------------------^--------------------'
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Buildroot] [PATCH 1/1] package/tftpd: add include of config file to init script
2022-04-28 13:42 [Buildroot] [PATCH 1/1] package/tftpd: add include of config file to init script Andreas Ehmanns
2022-04-28 15:45 ` Yann E. MORIN
@ 2022-05-27 9:43 ` Peter Korsgaard
1 sibling, 0 replies; 3+ messages in thread
From: Peter Korsgaard @ 2022-05-27 9:43 UTC (permalink / raw)
To: Andreas Ehmanns; +Cc: buildroot
>>>>> "Andreas" == Andreas Ehmanns <universeiii@gmx.de> writes:
> HPA's tftp server init script does not support include of a
> configuration file. So changing daemon parameters would cause
> a modification of the init script.
> Similar to NFS, dropbear, DHCP, SNMP and other network services
> in buildroot, this patch adds an include of /etc/default/tftpd
> to the init script. So any user can change the default behaviour
> by adding its own configuration file instead of changing the init
> script.
> Signed-off-by: Andreas Ehmanns <universeiii@gmx.de>
Committed to 2022.02.x, thanks.
--
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-05-27 9:43 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-04-28 13:42 [Buildroot] [PATCH 1/1] package/tftpd: add include of config file to init script Andreas Ehmanns
2022-04-28 15:45 ` Yann E. MORIN
2022-05-27 9:43 ` Peter Korsgaard
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.