Added check for internet connectivity before making a test to enable gsm interface