2015-09-21, 08:53
OK, I think I know what the problem is (there are two issues).
1) I'm creating the file /usr/bin/intel-fullrange.sh from a patch, which isn't applying execute permission - normally execute permission isn't required
2) The new intel-fullrange services are executing the shell script directly with "/bin/sh -c /usr/bin/intel-fullrange.sh". Typically a service will use "/bin/sh -c" to load /etc/profile, then execute the shell script - with or without execute permission - using "exec /bin/sh <blah>". Here's ExecStart for the autostart.sh service:
@fritsch: Would you mind updating the service patch so that it is consistent with other services that execute shell scripts?
@Roby77: If you re-run the steps in post #41 (which I have updated) I'm pretty sure it will now work.
The next build will have a complete fix. Once the build is fixed, revert the changes with:
1) I'm creating the file /usr/bin/intel-fullrange.sh from a patch, which isn't applying execute permission - normally execute permission isn't required
2) The new intel-fullrange services are executing the shell script directly with "/bin/sh -c /usr/bin/intel-fullrange.sh". Typically a service will use "/bin/sh -c" to load /etc/profile, then execute the shell script - with or without execute permission - using "exec /bin/sh <blah>". Here's ExecStart for the autostart.sh service:
Code:
ExecStart=-/bin/sh -c ". /etc/profile; exec /bin/sh /storage/.config/autostart.sh"
@fritsch: Would you mind updating the service patch so that it is consistent with other services that execute shell scripts?
@Roby77: If you re-run the steps in post #41 (which I have updated) I'm pretty sure it will now work.
The next build will have a complete fix. Once the build is fixed, revert the changes with:
Code:
systemctl disable intel-fullrange
rm /storage/intel-fullrange.sh /storage/.config/system.d/intel-fullrange.service
sync
reboot