The dispatcher expects PATH environment variable and fails at strdup(getenv("PATH")); because usb_modeswitch script doesn't export PATH variable:
PATH=/sbin:/usr/sbin:$PATH
should be
export PATH=/sbin:/usr/sbin:$PATH
for the variable to appear in the environment
The dispatcher expects PATH environment variable and fails at strdup( getenv( "PATH") ); because usb_modeswitch script doesn't export PATH variable:
PATH=/sbin: /usr/sbin: $PATH
should be
export PATH=/sbin: /usr/sbin: $PATH
for the variable to appear in the environment