From: Jo-Philipp Wich Date: Tue, 20 Dec 2011 19:20:09 +0000 (+0000) Subject: [packages] wide-dhcpv6: fix second instance of endian detection as well (#10648) X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fsvn-archive%2Farchive.git;a=commitdiff_plain;h=a7130294051c06be546a9aba8974cb8351e39524 [packages] wide-dhcpv6: fix second instance of endian detection as well (#10648) SVN-Revision: 29589 --- diff --git a/ipv6/wide-dhcpv6/Makefile b/ipv6/wide-dhcpv6/Makefile index bdb74cc03d..04f13264da 100644 --- a/ipv6/wide-dhcpv6/Makefile +++ b/ipv6/wide-dhcpv6/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=wide-dhcpv6 PKG_VERSION:=20080615 -PKG_RELEASE:=9 +PKG_RELEASE:=10 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=@SF/$(PKG_NAME) diff --git a/ipv6/wide-dhcpv6/files/dhcp6c.init b/ipv6/wide-dhcpv6/files/dhcp6c.init index b60b45b0e3..12248109e9 100644 --- a/ipv6/wide-dhcpv6/files/dhcp6c.init +++ b/ipv6/wide-dhcpv6/files/dhcp6c.init @@ -51,7 +51,7 @@ dhcp6c_write_duid() { local len_lo=$(printf "%02x" $((${#len_id} % 0xFF)) ) # low endian - if [ "$(printf \\1 | hexdump -n1 -ve '8/2 "%04x"')" = "0001" ]; then + if [ "$(printf \\1 | hexdump -n1 -ve '8/2 "" "%04x" ""')" = "0001" ]; then printf \\x$len_lo\\x$len_hi # big endian