Problem: OpenWRT box gets overfilled with a package, no space left on device
and no good clean up.

Suggestion:
opkg installes to /tmp/staging which is ramdisk
then it says du -c /tmp/staging
and df /overlay
then compare if the last line of df has a bigger number
then du -c /tmp/staging.
If yes, then mv /tmp/staging/* /
in no, write "staging failed, package to big. Free $df - $du-c bytes and
try again"

Do you like the algorithm above?
Should it be implemented as a wrapper script?


Cheers,

Ludwig


Attachment: 0xF8804DAF.asc
Description: application/pgp-keys

_______________________________________________
Lede-dev mailing list
Lede-dev@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/lede-dev

Reply via email to