Run 2 commands in the same line in terminal emulator
If you want to execute each command only if the previous one succeeded, then combine them using the &amp;&amp; operator:

Your code should be as follows: 

svc wifi disable &amp;&amp; exit


It will work only if your  first command successfully  execute.