#! /bin/sh local hasOnboarding=$(uci get ucitrack.@alljoyn-onboarding[-1] 2> /dev/null) if [ -z "$hasOnboarding" ]; then uci batch </dev/null | sed '/\/etc\/init.d\/alljoyn-onboarding/d' | echo '*/1 * * * * /etc/init.d/alljoyn-onboarding poll_connection' | crontab - /etc/init.d/cron enable exit 0