I need my data connection also need to be persistant when i connect my board to laptop
for now. I am able to automate the process till NAT rules and iptables, so only i have to use ‘cm data connect’ through ssh to get internet on my laptop
but I included below in my init script still i am not able to get internet access over ethernet from mangOH yellow to my laptop
**
cm data connect >/dev/null 2>&1 &**
could you tell me how to make above command persistant
create a script startdata.sh in /home/root with the following content:
root@swi-mdm9x28-wp:~# cat startdata.sh sleep 30 /mnt/legato/system/bin/cm data connect
chmod 777 /home/root/startdata.sh
you can test this script by “sh /home/root/startdata.sh”
if it is ok, open /etc/init.d/startlegato.sh and add the following line:
case “$1” in
start)
echo “Legato start sequence”
umount /legato 2>/dev/null
mount -o bind $LEGATO_MNT /legato
test -x $LEGATO_START && $LEGATO_START
sh /home/root/startdata.sh &
;;
I followed your instructions, but below command is is halted in execution.
There is also one thing which i want to highlight that when I do cm data connect then manually every time i have to type Ctrl + C to come out of execution and then data is conneted.