Upon upgrading from Ubuntu 14.04 to 16.04 and then immediately to 18.04 I found that the symlink creation was not working. After researching this I found that this is not related to a Linux distro nor version but the kernel version.
This commit removes the Ubuntu related code and uses a much simpler approach with less code to find the temperature sensors in the directory structure, which can be different and then create the links for them.
Upon upgrading from Ubuntu 14.04 to 16.04 and then immediately to 18.04 I found that the symlink creation was not working. After researching this I found that this is not related to a Linux distro nor version but the kernel version.
This commit removes the Ubuntu related code and uses a much simpler approach with less code to find the temperature sensors in the directory structure, which can be different and then create the links for them.