[PATCH] openwrt: fix ntp init to accept link local addr

Tim Niemeyer tim at tn-x.org
Di Jan 10 19:32:36 CET 2017


Hi

Und applied.

Tim

Am Freitag, den 06.01.2017, 16:43 +0100 schrieb Tim Niemeyer:
> Currently it seems to be more work to fix the ip validation in
> ubox project (validate/validate.c). Therefore we just validate it
> as string.
> 
> Fixes #9
> 
> Signed-off-by: Tim Niemeyer <tim at tn-x.org>
> ---
> 
>  build_patches/openwrt/0009-ntpd-host-as-string.patch | 13 +++++++++++++
>  1 file changed, 13 insertions(+)
>  create mode 100644 build_patches/openwrt/0009-ntpd-host-as-string.patch
> 
> diff --git a/build_patches/openwrt/0009-ntpd-host-as-string.patch b/build_patches/openwrt/0009-ntpd-host-as-string.patch
> new file mode 100644
> index 0000000..94c2ce2
> --- /dev/null
> +++ b/build_patches/openwrt/0009-ntpd-host-as-string.patch
> @@ -0,0 +1,13 @@
> +diff --git package/utils/busybox/files/sysntpd package/utils/busybox/files/sysntpd
> +index f73bb83..61cb54c 100755
> +--- package/utils/busybox/files/sysntpd
> ++++ package/utils/busybox/files/sysntpd
> +@@ -9,7 +9,7 @@ HOTPLUG_SCRIPT=/usr/sbin/ntpd-hotplug
> + 
> + validate_ntp_section() {
> + 	uci_validate_section system timeserver "${1}" \
> +-		'server:list(host)' 'enabled:bool:1' 'enable_server:bool:0'
> ++		'server:list(string)' 'enabled:bool:1' 'enable_server:bool:0'
> + }
> + 
> + start_service() {
> -- 
> 2.1.4
> 

-------------- nächster Teil --------------
Ein Dateianhang mit Binärdaten wurde abgetrennt...
Dateiname   : signature.asc
Dateityp    : application/pgp-signature
Dateigröße  : 473 bytes
Beschreibung: This is a digitally signed message part
URL         : <http://lists.freifunk.net/pipermail/franken-dev-freifunk.net/attachments/20170110/a7a3fea0/attachment.sig>


Mehr Informationen über die Mailingliste franken-dev