if /usr/lib/connman/test/get-state | grep -qi "System is online" ; then
    message "System is online"
  else
    /usr/lib/connman/test/test-connman enable wifi
    /usr/lib/connman/test/test-connman enable ethernet
fi
