. . . # Disconnect SIM2 Internet echo "Disconnect SIM2 Internet" run-standalone.sh dbus-send --system --dest=com.nokia.icd /com/nokia/icd_ui com.nokia.icd_ui.disconnect boolean:true # Switch to SIM1 if [ $opcode1 == 1 ]; then run-standalone.sh dbus-send --system --dest=com.nokia.csd.Call --type=method_call --print-reply /com/nokia/csd/call com.nokia.csd.Call.CreateWith string:"001" uint32:0 sleep 1 run-standalone.sh dbus-send --system --print-reply --dest=com.nokia.csd.Call /com/nokia/csd/call com.nokia.csd.Call.Release sleep 1 sudo /opt/sim-switcher/phonet-helper down sleep 7 sudo /opt/sim-switcher/phonet-helper up sleep 20 fi fi fi
. . . # Disconnect SIM2 Internet echo "Disconnect SIM2 Internet" run-standalone.sh dbus-send --system --dest=com.nokia.icd /com/nokia/icd_ui com.nokia.icd_ui.disconnect boolean:true # Switch to SIM1 if [ $opcode1 == 1 ]; then run-standalone.sh dbus-send --system --dest=com.nokia.csd.Call --type=method_call --print-reply /com/nokia/csd/call com.nokia.csd.Call.CreateWith string:"001" uint32:0 sleep 1 run-standalone.sh dbus-send --system --print-reply --dest=com.nokia.csd.Call /com/nokia/csd/call com.nokia.csd.Call.Release # sleep 1 # sudo /opt/sim-switcher/phonet-helper down # sleep 7 # sudo /opt/sim-switcher/phonet-helper up # sleep 20 fi fi fi