From 14f4eb03719b564eb0c609188a541b6e5e887379 Mon Sep 17 00:00:00 2001 From: hummypkg Date: Wed, 1 Mar 2017 00:01:50 +0000 Subject: [PATCH] attempt to auto-fix package upgrade problem git-svn-id: file:///root/webif/svn/pkg/webif/trunk@3864 2a923420-c742-0410-a762-8d5b09965624 --- CONTROL/control | 2 +- CONTROL/postinst | 8 -------- CONTROL/preinst | 7 +++++++ 3 files changed, 8 insertions(+), 9 deletions(-) diff --git a/CONTROL/control b/CONTROL/control index d5261173..e07bfc86 100644 --- a/CONTROL/control +++ b/CONTROL/control @@ -1,7 +1,7 @@ Package: webif Priority: optional Section: web -Version: 1.4.0-12 +Version: 1.4.0-13 Architecture: mipsel Maintainer: af123@hpkg.tv Depends: tcpfix,webif-channelicons(>=1.1.25),lighttpd(>=1.4.39-1),jim(>=0.77),jim-oo(>=0.77),jim-sqlite3(>=0.76),jim-cgi(>=0.7-1),jim-binary(>=0.76),service-control(>=2.3),busybox(>=1.20.2-1),lsof(>=4.87),epg(>=1.2.5),hmt(>=2.0.10),ssmtp,cron-daemon(>=1.18.3-3),at(>=3.1.18),anacron,trm(>=1.1),openssl-command,nicesplice,id3v2,file,rsvsync(>=1.1.10),webif-charts(>=1.2-1),stripts(>=1.2.5-3),tmenu(>=1.21-2),ffmpeg,id3v2,multienv(>=1.6),tcpping(>=1.1),e2fsprogs,wireless-tools(>=29-1),dbupdate,recmon(>=2.0.7),hwctl,nugget(>=0.95),sqlite3(>=3.15.1) diff --git a/CONTROL/postinst b/CONTROL/postinst index 83c7a54e..fc7fbe6d 100755 --- a/CONTROL/postinst +++ b/CONTROL/postinst @@ -58,14 +58,6 @@ hook=/mod/boot/xinit.d/rt3070 [ -f record.log -a ! -f activity.log ] && mv record.log activity.log ) -if [ ! -f /mod/webif/.fixpkg ]; then - at now + 1 minute << EOM -diag fixpkg -/mod/etc/init.d/S01lighttpd start -touch /mod/webif/.fixpkg -EOM -fi - [ -f $tmpf ] && rm -f $tmpf # Remove empty directories diff --git a/CONTROL/preinst b/CONTROL/preinst index 8e028cbe..df329d63 100755 --- a/CONTROL/preinst +++ b/CONTROL/preinst @@ -12,5 +12,12 @@ if [ -h /mod/webif -a -d /mod/var/mongoose -a ! -h /mod/var/mongoose ]; then ln -s ../webif mongoose fi +if [ ! -f /mod/webif/.pfixpkg ]; then + at now + 1 minute << EOM +diag fixpkg +touch /mod/webif/.pfixpkg +EOM +fi + exit 0