Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 243b877e authored by Luca Stefani's avatar Luca Stefani Committed by Michael Bestas
Browse files

Kill sysinit

Change-Id: Ia8d46d794ff829f3fc39ff48d57fdb6f9c03262d
parent defae4ab
Loading
Loading
Loading
Loading
+0 −11
Original line number Original line Diff line number Diff line
@@ -53,17 +53,6 @@ PRODUCT_COPY_FILES += \
PRODUCT_COPY_FILES += \
PRODUCT_COPY_FILES += \
    vendor/lineage/config/permissions/lineage-sysconfig.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/sysconfig/lineage-sysconfig.xml
    vendor/lineage/config/permissions/lineage-sysconfig.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/sysconfig/lineage-sysconfig.xml


# init.d support
PRODUCT_COPY_FILES += \
    vendor/lineage/prebuilt/common/etc/init.d/00banner:$(TARGET_COPY_OUT_SYSTEM)/etc/init.d/00banner \
    vendor/lineage/prebuilt/common/bin/sysinit:$(TARGET_COPY_OUT_SYSTEM)/bin/sysinit

ifneq ($(TARGET_BUILD_VARIANT),user)
# userinit support
PRODUCT_COPY_FILES += \
    vendor/lineage/prebuilt/common/etc/init.d/90userinit:$(TARGET_COPY_OUT_SYSTEM)/etc/init.d/90userinit
endif

# Copy all Lineage-specific init rc files
# Copy all Lineage-specific init rc files
$(foreach f,$(wildcard vendor/lineage/prebuilt/common/etc/init/*.rc),\
$(foreach f,$(wildcard vendor/lineage/prebuilt/common/etc/init/*.rc),\
	$(eval PRODUCT_COPY_FILES += $(f):$(TARGET_COPY_OUT_SYSTEM)/etc/init/$(notdir $f)))
	$(eval PRODUCT_COPY_FILES += $(f):$(TARGET_COPY_OUT_SYSTEM)/etc/init/$(notdir $f)))

prebuilt/common/bin/sysinit

deleted100644 → 0
+0 −9
Original line number Original line Diff line number Diff line
#!/system/bin/sh

export PATH=/sbin:/system/sbin:/system/bin:/system/xbin
for i in /system/etc/init.d/*; do
    if [ -x $i ]; then
        /system/bin/log -t sysinit Running $i
        $i
    fi
done
+0 −13
Original line number Original line Diff line number Diff line
#!/system/bin/sh
#
# Print startup info
#
L="log -p i -t lineage"

$L "_ _                                       "
$L "| (_)_ __   ___  __ _  __ _  ___  ___  ___ "
$L "| | | '_ \\ / _ \\/ _\` |/ _\` |/ _ \\/ _ \\/ __|"
$L "| | | | | |  __/ (_| | (_| |  __/ (_) \\__ \\"
$L "|_|_|_| |_|\\___|\\__,_|\\__, |\\___|\\___/|___/"
$L "                      |___/"
$L "Welcome to Android `getprop ro.build.version.release` / LineageOS-`getprop ro.lineage.version`";
+0 −9
Original line number Original line Diff line number Diff line
#!/system/bin/sh
# call userinit.sh if present in /data/local

if [ -e /data/local/userinit.sh ];
then
   log -p i -t userinit "Executing /data/local/userinit.sh";
   /system/bin/sh /data/local/userinit.sh;
   setprop lineage.userinit.active 1;
fi;
+0 −9
Original line number Original line Diff line number Diff line
@@ -6,9 +6,6 @@ on init
on post-fs-data
on post-fs-data
    mkdir /cache/recovery 0770 system cache
    mkdir /cache/recovery 0770 system cache


    # Run sysinit
    start sysinit

    # Change permissions on fsck log so it can be added to the dropbox
    # Change permissions on fsck log so it can be added to the dropbox
    chown root log /dev/fscklogs/log
    chown root log /dev/fscklogs/log
    chmod 0640 /dev/fscklogs/log
    chmod 0640 /dev/fscklogs/log
@@ -17,12 +14,6 @@ on boot
    # Persistent properties (only created if persist exists)
    # Persistent properties (only created if persist exists)
    mkdir /persist/properties 0770 system system
    mkdir /persist/properties 0770 system system


# sysinit (/system/etc/init.d)
service sysinit /system/bin/sysinit
    user root
    oneshot
    disabled

# bugreport is triggered by holding down volume down, volume up and power
# bugreport is triggered by holding down volume down, volume up and power
service bugreport /system/bin/dumpstate -d -p -B -z \
service bugreport /system/bin/dumpstate -d -p -B -z \
        -o /data/user_de/0/com.android.shell/files/bugreports/bugreport
        -o /data/user_de/0/com.android.shell/files/bugreports/bugreport