only use "at" if installed

This commit is contained in:
HummyPkg 2017-08-25 20:19:52 +01:00
parent 87ff52dd03
commit 0da04b5aed

View File

@ -12,8 +12,8 @@ if [ -h /mod/webif -a -d /mod/var/mongoose -a ! -h /mod/var/mongoose ]; then
ln -s ../webif mongoose ln -s ../webif mongoose
fi fi
if [ ! -f /mod/webif/.pfixpkg ]; then if [ ! -f /mod/webif/.pfixpkg -a -x /mod/bin/at ]; then
at now + 1 minute << EOM /mod/bin/at now + 1 minute << EOM
diag fixpkg diag fixpkg
touch /mod/webif/.pfixpkg touch /mod/webif/.pfixpkg
EOM EOM