From 719d61b4d24d4a70fc1e36663c8b0e6d6a326bf0 Mon Sep 17 00:00:00 2001 From: hummypkg Date: Sun, 1 Feb 2015 23:03:47 +0000 Subject: [PATCH] remove sweeper.conf, fix damage! --- CONTROL/control | 2 +- CONTROL/postinst | 7 +++++++ etc/sweeper.conf | 12 ------------ 3 files changed, 8 insertions(+), 13 deletions(-) delete mode 100644 etc/sweeper.conf diff --git a/CONTROL/control b/CONTROL/control index 16fa4ec..61cf46b 100644 --- a/CONTROL/control +++ b/CONTROL/control @@ -1,7 +1,7 @@ Package: sweeper Priority: optional Section: misc -Version: 2.0.7-3 +Version: 2.0.7-4 Architecture: mipsel Maintainer: af123@hummypkg.org.uk Depends: webif(>=1.0.16) diff --git a/CONTROL/postinst b/CONTROL/postinst index f36bbf0..9a6e5cb 100755 --- a/CONTROL/postinst +++ b/CONTROL/postinst @@ -1,6 +1,13 @@ #!/bin/sh f=/mod/etc/sweeper.conf +if [ -f $f ]; then + sum=`/mod/bin/busybox/md5sum $f | awk '{print $1}'` + if [ "$sum" = "a22cb1379fb9c58ae549dead9695eebe" ]; then + rm -f $f + fi +fi + if [ ! -f $f ]; then if [ -f $f~ ]; then cp $f~ $f diff --git a/etc/sweeper.conf b/etc/sweeper.conf deleted file mode 100644 index b79dc43..0000000 --- a/etc/sweeper.conf +++ /dev/null @@ -1,12 +0,0 @@ -# Move any Children's films (by length) -## lcn {>= 70} lcn {<= 79} duration {>= 90} action {move Children/Films} -# Move any Children's films (by genre) -## lcn {>= 70} lcn {<= 79} genre Film action {move Children/Films} -# Move anything else recorded from a children's channel -## lcn {>= 70} lcn {<= 79} action {move Children/Miscellaneous} -# Move any series recordings from a Children's channel (folder rule) -## folder lcn {>= 70} lcn {<= 79} action {fileundercreate Children} -# Move any one-off Formula 1 recordings into the F1 folder -## title {Formula 1} action {move F1} -# Move any one-off recordings into a folder called Misc after a while -## age {> 120} action {movecreate Misc}