[packages] usbutils: Fix updating of USB IDs list
authorVasilis Tsiligiannis <acinonyx@openwrt.gr>
Tue, 11 Aug 2009 23:34:57 +0000 (23:34 +0000)
committerVasilis Tsiligiannis <acinonyx@openwrt.gr>
Tue, 11 Aug 2009 23:34:57 +0000 (23:34 +0000)
SVN-Revision: 17232

utils/usbutils/Makefile
utils/usbutils/patches/100-ids-relative-path.patch [new file with mode: 0644]

index 5922835a6145febe1ddb12771f75f17182b74a0d..4f2728991d56e2eac6054a653bffc94401ed06c6 100644 (file)
@@ -27,7 +27,7 @@ endef
 
 define Package/usbutils/postinst
 #!/bin/sh
-$${IPKG_INSTROOT}/usr/sbin/update-usbids.sh
+(cd $${IPKG_INSTROOT}/usr/share; $${IPKG_INSTROOT}/usr/sbin/update-usbids.sh)
 endef
 
 # uses GNU configure
diff --git a/utils/usbutils/patches/100-ids-relative-path.patch b/utils/usbutils/patches/100-ids-relative-path.patch
new file mode 100644 (file)
index 0000000..6117c36
--- /dev/null
@@ -0,0 +1,11 @@
+--- a/update-usbids.sh.in
++++ b/update-usbids.sh.in
+@@ -6,7 +6,7 @@
+ set -e
+ SRC="http://www.linux-usb.org/usb.ids"
+-DEST=@usbids@
++DEST=usb.ids
+ # if usb.ids is read-only (because the filesystem is read-only),
+ # then just skip this whole process.