Merge "Switch init over to _PATH_DEFPATH."
This commit is contained in:
commit
789c99a48e
2 changed files with 3 additions and 1 deletions
|
|
@ -18,6 +18,7 @@
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <libgen.h>
|
#include <libgen.h>
|
||||||
|
#include <paths.h>
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
@ -988,6 +989,8 @@ int main(int argc, char** argv) {
|
||||||
// Clear the umask.
|
// Clear the umask.
|
||||||
umask(0);
|
umask(0);
|
||||||
|
|
||||||
|
add_environment("PATH", _PATH_DEFPATH);
|
||||||
|
|
||||||
// Get the basic filesystem setup we need put together in the initramdisk
|
// 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.
|
// on / and then we'll let the rc file figure out the rest.
|
||||||
mkdir("/dev", 0755);
|
mkdir("/dev", 0755);
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,5 @@
|
||||||
# set up the global environment
|
# set up the global environment
|
||||||
on init
|
on init
|
||||||
export PATH /sbin:/vendor/bin:/system/sbin:/system/bin:/system/xbin
|
|
||||||
export ANDROID_BOOTLOGO 1
|
export ANDROID_BOOTLOGO 1
|
||||||
export ANDROID_ROOT /system
|
export ANDROID_ROOT /system
|
||||||
export ANDROID_ASSETS /system/app
|
export ANDROID_ASSETS /system/app
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue