Created attachment 4809 [details] Patch that should fix this. The shell script /usr/sbin/update-rc.d has a couple of issues in line 117. newnn=$[100-$oldnn] https://git.yoctoproject.org/cgit/cgit.cgi/update-rc.d/tree/update-rc.d#n117 1) $[] is only known by bash. Running 'update-rc.d script enable' with a POSIX shell creates the links 'S$[100-12]script' instead of 'S88script'. - Running 'update-rc.d script enable' a second time encounters more issues, since the $oldnn just grabs the second and third letter of the symlinks, which are now '$['. - This is an issue since many embedded boards only have busybox shell. 2) $oldnn is parsed as a number, but a leading 0 means octal so that 08 and 09 fail. Running 'update-rc.d weston disable' does not work even when using bash, because S09weston results in $[100-09], which gives errors in any shell. Both issues could be handled by using $(()), and stripping the leading 0. $((100-${oldnn#0})) # oldnn is guaranteed to be 2 chars Shellcheck also reports 50+ other issues, but the others don't seem to break anything.
Einar, Are you able to send the patch to the email list: openembedded-core@lists.openembedded.org https://www.openembedded.org/wiki/How_to_submit_a_patch_to_OpenEmbedded I am usually available to help but I'm on vacation for a week. - Randy
Done. https://lists.openembedded.org/g/openembedded-core/message/153466
Merged... https://git.yoctoproject.org/cgit/cgit.cgi/update-rc.d/commit/?id=8636cf478d426b568c1be11dbd9346f67e03adac Still needs to be tagged and bumped into poky
Bumped in poky master https://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=404463335113da2a6d0674e959109e069f9bb576
Thanks Einar!