Page 1 of 1

[PATCH] Use realpath instead of readlink to detect init.

Posted: 08 Aug 2017, 11:12
by ravenexp
As it is, usb_modeswitch was broken on my distro because of how systemd is configured.

Re: [PATCH] Use realpath instead of readlink to detect init.

Posted: 09 Aug 2017, 19:10
by Josh
I can see the problem - however, "realpath" is not available on every system I checked.

Did you try the parameter -f with "readlink"? That seems to do the job, following a chain of symlinks up to the real file.
If you can confirm this, I'll add a fix to the usb_modeswitch package.