What about this for the cron job? It only runs if landscape-client is enabled.
#!/bin/sh
[ -f "/etc/default/landscape-client" ] || exit 0
source /etc/default/landscape-client
[ "$RUN" -eq "1" ] && /usr/share/smart/smart update > /dev/null 2>&1
exit 0
What about this for the cron job? It only runs if landscape-client is enabled.
#!/bin/sh
[ -f "/etc/default/ landscape- client" ] || exit 0
source /etc/default/ landscape- client
[ "$RUN" -eq "1" ] && /usr/share/ smart/smart update > /dev/null 2>&1
exit 0