Added script for enable captive portal function.