[packages] wide-dhcpv6: now that hexdump works again, fix endianess detection (#10396)

git-svn-id: svn://svn.openwrt.org/openwrt/packages@29157 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
jow 2011-11-15 17:41:50 +00:00
parent 7b14669697
commit 0bc19f976a
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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