{"id":209,"date":"2015-10-24T18:35:40","date_gmt":"2015-10-24T16:35:40","guid":{"rendered":"http:\/\/lisas.de\/~alex\/?p=209"},"modified":"2015-10-24T18:35:40","modified_gmt":"2015-10-24T16:35:40","slug":"user-init-d-for-cm12-1","status":"publish","type":"post","link":"https:\/\/lisas.de\/~alex\/?p=209","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":[26],"tags":[],"class_list":["post-209","post","type-post","status-publish","format-standard","hentry","category-android"],"_links":{"self":[{"href":"https:\/\/lisas.de\/~alex\/index.php?rest_route=\/wp\/v2\/posts\/209","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lisas.de\/~alex\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lisas.de\/~alex\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lisas.de\/~alex\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lisas.de\/~alex\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=209"}],"version-history":[{"count":8,"href":"https:\/\/lisas.de\/~alex\/index.php?rest_route=\/wp\/v2\/posts\/209\/revisions"}],"predecessor-version":[{"id":217,"href":"https:\/\/lisas.de\/~alex\/index.php?rest_route=\/wp\/v2\/posts\/209\/revisions\/217"}],"wp:attachment":[{"href":"https:\/\/lisas.de\/~alex\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=209"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lisas.de\/~alex\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=209"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lisas.de\/~alex\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=209"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}