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

Commit 789c99a4 authored by Elliott Hughes's avatar Elliott Hughes Committed by Gerrit Code Review
Browse files

Merge "Switch init over to _PATH_DEFPATH."

parents 26746a46 cc86fb2b
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -18,6 +18,7 @@
#include <errno.h>
#include <fcntl.h>
#include <libgen.h>
#include <paths.h>
#include <signal.h>
#include <stdarg.h>
#include <stdio.h>
@@ -988,6 +989,8 @@ int main(int argc, char** argv) {
    // Clear the umask.
    umask(0);

    add_environment("PATH", _PATH_DEFPATH);

    // Get the basic filesystem setup we need put together in the initramdisk
    // on / and then we'll let the rc file figure out the rest.
    mkdir("/dev", 0755);
+0 −1
Original line number Diff line number Diff line
# set up the global environment
on init
    export PATH /sbin:/vendor/bin:/system/sbin:/system/bin:/system/xbin
    export ANDROID_BOOTLOGO 1
    export ANDROID_ROOT /system
    export ANDROID_ASSETS /system/app