The script is only meant to be automatically executed by the system from if-up.d directory. When automatically executed the ICD_CONNECTION_TYPE ought to be correctly set. When run manually from terminal... you need to know what you are doing and set preconditions correctly yourself Maybe a manual execution option should be added to the script? Improvement suggestions are welcome, we are still working on the feature