From 6698e5ebdb538c0f3df694b91bd3ed70cb712f6f Mon Sep 17 00:00:00 2001 From: Ricardo Cerqueira Date: Fri, 23 Nov 2012 17:15:16 +0000 Subject: [PATCH] init.cm.rc: Fix startup banner, and move sysinit here MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit "getprop" depends on the presence of the property workspace env var, which is created by the first starting service. Why not make that sysinit itself? (\/) (°,,,°) (\/) --- prebuilt/common/etc/init.d/00banner | 8 +++----- prebuilt/common/etc/init.local.rc | 8 ++++++++ 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/prebuilt/common/etc/init.d/00banner b/prebuilt/common/etc/init.d/00banner index ed2f4b73..a04ef186 100644 --- a/prebuilt/common/etc/init.d/00banner +++ b/prebuilt/common/etc/init.d/00banner @@ -4,9 +4,7 @@ # L="log -p i -t cm" +$L "____ _ _ ____ _ _ ____ ____ ____ _ _ _ _ ____ ___"; +$L "| \\_/ |__| |\\ | | | | __ |___ |\\ | |\\/| | | | \\"; +$L "|___ | | | | \\| |__| |__] |___ | \\| | | |__| |__/"; $L "Welcome to Android `getprop ro.build.version.release` / CyanogenMod-`getprop ro.cm.version`"; -$L " _ "; -$L " __ __ _ ___ _ _ __ ___ __ _ _ _ _ __ __))"; -$L "((_ \\(/'((_( ((\\( ((_)((_( (('((\\( ((\`1( ((_)((_( "; -$L " )) _))"; -$L " "; diff --git a/prebuilt/common/etc/init.local.rc b/prebuilt/common/etc/init.local.rc index 2a31cc33..e5f55494 100644 --- a/prebuilt/common/etc/init.local.rc +++ b/prebuilt/common/etc/init.local.rc @@ -11,6 +11,9 @@ on post-fs-data chmod 0771 /cache/dalvik-cache on boot + # Run sysinit + start sysinit + chown system system /sys/block/mmcblk0/queue/scheduler chmod 0664 /sys/block/mmcblk0/queue/scheduler @@ -38,3 +41,8 @@ service compcache /system/bin/handle_compcache user root group root oneshot + +# sysinit (/system/etc/init.d) +service sysinit /system/bin/sysinit + user root + oneshot