Added support for init.d

The script was auto-executing at startup before connman
could generate a list of services. The script will now
loop until it gets a service ID.

Signed-off-by: Mike Lewis <mikelewis@alphalem.com>