[packages] usbutils: Fix updating of USB IDs list
authoracinonyx <acinonyx@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Tue, 11 Aug 2009 23:34:57 +0000 (23:34 +0000)
committeracinonyx <acinonyx@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Tue, 11 Aug 2009 23:34:57 +0000 (23:34 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/packages@17232 3c298f89-4303-0410-b956-a3cf2f4a3e73

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

index 5922835..4f27289 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.