[PATCH] Use realpath instead of readlink to detect init.
As it is, usb_modeswitch was broken on my distro because of how systemd is configured.
- Attachments
-
- 0001-Use-realpath-instead-of-readlink-to-detect-init.patch
- (905 Bytes) Downloaded 743 times
Re: [PATCH] Use realpath instead of readlink to detect init.
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.
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.