only use "at" if installed

This commit is contained in:
HummyPkg 2017-08-25 20:19:52 +01:00
parent 87ff52dd03
commit 0da04b5aed
1 changed files with 2 additions and 2 deletions

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
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