# Automatically connect to the internet (without Cm data ) on fx30s

**URL:** <https://forum.legato.io/t/automatically-connect-to-the-internet-without-cm-data-on-fx30s/6401>\
**Category:** Legato Application Framework\
**Created:** [January 17, 2023, 4:26am UTC](https://forum.legato.io/t/automatically-connect-to-the-internet-without-cm-data-on-fx30s/6401 "2023-01-17T04:26:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sunil.somarajan](https://avatars.discourse-cdn.com/v4/letter/s/34f0e0/32.png) [@sunil.somarajan](https://forum.legato.io/u/sunil.somarajan)\
**Post date:** [January 17, 2023, 4:26am UTC](https://forum.legato.io/t/automatically-connect-to-the-internet-without-cm-data-on-fx30s/6401/1 "2023-01-17T04:26:08Z")

</div>

I have an FX30 with Verizon Sim. Everything is working fine with Release 15. Sim is CATM and is able to connect to the network.

I want to be able to make the data connection start automatically without having to run “cm data connect” each time I reboot. Is there any AT command that I need to run to make this persistent ?

AT!SELRAT?  
!SELRAT: 06, LTE Only

OK

AT+CGDCONT?  
+CGDCONT: 1,“IPV4V6”,“num.vxwentp”,“0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0”,0,0,0,0  
+CGDCONT: 2,“IPV4V6”,“VZWADMIN”,“0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0”,0,0,0,0  
+CGDCONT: 4,“IPV4V6”,“VZWAPP”,“0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0”,0,0,0,0  
+CGDCONT: 5,“IPV4V6”,“VZW800”,“0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0”,0,0,0,0  
+CGDCONT: 6,“IPV4V6”,“VZWCLASS6”,“0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0”,0,0,0,0

Sunil

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/jyijyi/32/822_2.png) [@jyijyi](https://forum.legato.io/u/jyijyi)\
**Post date:** [January 17, 2023, 4:31am UTC](https://forum.legato.io/t/automatically-connect-to-the-internet-without-cm-data-on-fx30s/6401/2 "2023-01-17T04:31:09Z")

</div>

you can build a legato app to run a script to call your command.

> [@Invoking shell scripts from Legato app](https://forum.legato.io/t/invoking-shell-scripts-from-legato-app/5575/4):
>
> I don’t see problem on WP76 FW R13. You can use my hello6.tar.gz. [hello6.tar.gz](https://forum.legato.io/uploads/short-url/czj2K4NaAp4M02tLAjqZGY8p95w.gz) (314.7 KB) root@swi-mdm9x28-wp:~# chmod 777 /tmp/test.sh root@swi-mdm9x28-wp:~# /tmp/test.sh root@swi-mdm9x28-wp:~# ls /tmp/123.txt /tmp/123.txt root@swi-mdm9x28-wp:~# cat /tmp/123.txt 123 root@swi-mdm9x28-wp:~# rm /tmp/123.txt root@swi-mdm9x28-wp:~# ls /tmp/ hello6.wp76xx.update legato test.sh hosts pkgdwl thermal\_engi\_ipc ld.so.cache psm\_socket …

And then you can make this application to be automatically start in .adef by “start: auto”

> **[Application Definition .adef - Legato Docs](https://docs.legato.io/latest/defFilesAdef.html#defFilesAdef_start)**
>
> legato™ is an open source Linux-based embedded platform designed to simplify connected IoT application development
