diff --git a/CONTROL/control b/CONTROL/control index efc6f33..489fc8f 100644 --- a/CONTROL/control +++ b/CONTROL/control @@ -1,7 +1,7 @@ Package: sweeper Priority: optional Section: misc -Version: 2.1.5-2 +Version: 2.1.5-3 Architecture: mipsel Maintainer: af123@hummypkg.org.uk Depends: webif(>=1.3.5-3) diff --git a/CONTROL/postinst b/CONTROL/postinst index 9a6e5cb..8edd329 100755 --- a/CONTROL/postinst +++ b/CONTROL/postinst @@ -31,9 +31,22 @@ case $schema in sed -e 's/^folder /& series "" /' -i "$f" done ;; + 1|2) + # Upgrade fflag arguments + echo "Upgrading sweeper rules for folder flags" + (echo /mod/etc/sweeper.conf; find /media -follow -name .sweeper) \ + | while read f; do + [ -f "$f" ] || continue + echo "Processing $f..." + sed -e ' + s/fflag autoshrinkr/fflag autoshrinkR/ + s/fflag autodecryptr/fflag autodecryptR/ + ' -i "$f" + done + ;; esac -echo 2 > /mod/.swschema +echo 3 > /mod/.swschema exit 0