From: Jo-Philipp Wich Date: Tue, 15 Nov 2011 17:41:50 +0000 (+0000) Subject: wide-dhcpv6: now that hexdump works again, fix endianess detection (#10396) X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=e69934b2c8df8deb7df297ce741666f141798ec5;p=openwrt%2Fsvn-archive%2Fpackages.git wide-dhcpv6: now that hexdump works again, fix endianess detection (#10396) SVN-Revision: 29157 --- diff --git a/ipv6/wide-dhcpv6/Makefile b/ipv6/wide-dhcpv6/Makefile index 9a869b332..5971312fc 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:=7 +PKG_RELEASE:=8 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 e27200188..b60b45b0e 100644 --- a/ipv6/wide-dhcpv6/files/dhcp6c.init +++ b/ipv6/wide-dhcpv6/files/dhcp6c.init @@ -33,7 +33,7 @@ dhcp6c_write_duid() { local oIFS="$IFS"; IFS=":"; set -- $mac; IFS="$oIFS" # 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 \\x0a\\x00 # big endian