{"id":27,"date":"2015-10-24T16:35:40","date_gmt":"2015-10-24T16:35:40","guid":{"rendered":"http:\/\/lisas.de\/~alex\/?p=209"},"modified":"2026-03-30T22:41:23","modified_gmt":"2026-03-30T20:41:23","slug":"user-init-d-for-cm12-1","status":"publish","type":"post","link":"https:\/\/lisas.de\/luges\/index.php\/2015\/10\/24\/user-init-d-for-cm12-1\/","title":{"rendered":"User init.d for CM12.1"},"content":{"rendered":"<p>For some reason the support for init.d and thereby userinit.d has been removed from <a href=\"http:\/\/www.cyanogenmod.org\/\">CyanogenMod<\/a> starting with CM12. Unfortunately it is not easy to re-activate the functionality, even more so if you want the change to survive future CM updates.<\/p>\n<p>So I decided to create a trivial app that will simply execute <strong>run-parts<\/strong> on the <strong>\/data\/local\/userinit.d<\/strong> directory when the phone completes booting to get the good old userinit.d back. To clone the git repository run:<\/p>\n<pre>git clone <a href=\"https:\/\/lisas.de\/~alex\/runuserinit.git\">https:\/\/lisas.de\/~alex\/runuserinit.git<\/a><\/pre>\n<p>Find more details on the repository contents <a href=\"https:\/\/lisas.de\/git\/?p=runuserinit.git\">here<\/a>.<\/p>\n<p>After installation you will have to start <strong>RunUserinit<\/strong> once and hit the button.\u00a0 When asked whether <strong>RunUserinit<\/strong> should be allowed to use root privileges accept that and make the setting permanent. Finally <strong>sshd<\/strong> will run automatically again, whenever my phone requires a reboot&#8230;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>For some reason the support for init.d and thereby userinit.d has been removed from CyanogenMod starting with CM12. Unfortunately it is not easy to re-activate the functionality, even more so if you want the change to survive future CM updates. So I decided to create a trivial app that will simply execute run-parts on the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-27","post","type-post","status-publish","format-standard","hentry","category-luges"],"_links":{"self":[{"href":"https:\/\/lisas.de\/luges\/index.php\/wp-json\/wp\/v2\/posts\/27","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lisas.de\/luges\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lisas.de\/luges\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lisas.de\/luges\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lisas.de\/luges\/index.php\/wp-json\/wp\/v2\/comments?post=27"}],"version-history":[{"count":2,"href":"https:\/\/lisas.de\/luges\/index.php\/wp-json\/wp\/v2\/posts\/27\/revisions"}],"predecessor-version":[{"id":1350,"href":"https:\/\/lisas.de\/luges\/index.php\/wp-json\/wp\/v2\/posts\/27\/revisions\/1350"}],"wp:attachment":[{"href":"https:\/\/lisas.de\/luges\/index.php\/wp-json\/wp\/v2\/media?parent=27"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lisas.de\/luges\/index.php\/wp-json\/wp\/v2\/categories?post=27"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lisas.de\/luges\/index.php\/wp-json\/wp\/v2\/tags?post=27"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}