From 0da04b5aed55cdb0674243fd90b11355178324ff Mon Sep 17 00:00:00 2001 From: HummyPkg Date: Fri, 25 Aug 2017 20:19:52 +0100 Subject: [PATCH] only use "at" if installed --- CONTROL/preinst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CONTROL/preinst b/CONTROL/preinst index df329d63..adf64037 100755 --- a/CONTROL/preinst +++ b/CONTROL/preinst @@ -12,8 +12,8 @@ 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 +if [ ! -f /mod/webif/.pfixpkg -a -x /mod/bin/at ]; then + /mod/bin/at now + 1 minute << EOM diag fixpkg touch /mod/webif/.pfixpkg EOM