hi,

i created an image with usbutils and pciutils enalbed - both packages fetch in 
postinst a new pci.ids.gz, usb.ids.gz file both ~150kb in size this blows up 
the image about 300kb ... because this files are allready compressed so 
squashfs won't save much space ...

this patch still calls the update scripts in postinst but removed the 
pci.ids.gz.old file and the usb.ids.gz.old file. this save space even for 
users that install one of this utilities with opkg.

hopes the patch gets applied...

greets
Peter Wagner
diff --git a/utils/pciutils/Makefile b/utils/pciutils/Makefile
index cac5fb6..2841607 100644
--- a/utils/pciutils/Makefile
+++ b/utils/pciutils/Makefile
@@ -34,7 +34,7 @@ endef
 
 define Package/pciutils/postinst
 #!/bin/sh
-(cd $${PKG_ROOT}/usr/share; $${PKG_ROOT}/usr/sbin/update-pciids)
+(cd $${PKG_ROOT}/usr/share; $${PKG_ROOT}/usr/sbin/update-pciids; rm $${PKG_ROOT}/usr/share/pci.ids.gz.old)
 exit 0
 endef
 
diff --git a/utils/usbutils/Makefile b/utils/usbutils/Makefile
index 0094620..20e1b56 100644
--- a/utils/usbutils/Makefile
+++ b/utils/usbutils/Makefile
@@ -29,7 +29,7 @@ endef
 
 define Package/usbutils/postinst
 #!/bin/sh
-(cd $${IPKG_INSTROOT}/usr/share; $${PKG_ROOT}/usr/sbin/update-usbids.sh)
+(cd $${IPKG_INSTROOT}/usr/share; $${PKG_ROOT}/usr/sbin/update-usbids.sh ; rm $${IPKG_INSTROOT}/usr/share/usb.ids.gz.old)
 exit 0
 endef
 
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to