smaller version - use realtive path instead of absolute path
Am Montag, 11. April 2011, 19:24:25 schrieb Peter Wagner:
> 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..fdf772f 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 pci.ids.gz.old)
 exit 0
 endef
 
diff --git a/utils/usbutils/Makefile b/utils/usbutils/Makefile
index 0094620..033e5de 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 usb.ids.gz.old)
 exit 0
 endef
 
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to