[packages] usbutils: Fix updating of USB IDs list

git-svn-id: svn://svn.openwrt.org/openwrt/packages@17232 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
acinonyx 2009-08-11 23:34:57 +00:00
parent b23d33034b
commit 784511bd1b
2 changed files with 12 additions and 1 deletions

View 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

View File

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