Mkdir In Init.rc
Init.rc Line No-264---mkdir /data/misc/radio 0770 radio radio I want to change permission of /data/misc/radio to 0775. I have written this next to above line: Line No-265---chmod
Solution 1:
When init executes the the init.rc script the mkdir will make the directory if it is not present with the permissions you provide, if the directory does exist then the permissions are set according to the mkdir command.
from aosp system/core/init/builtins.c in the function do_mkdir()
ret = make_dir(args[1], mode);
/* chmod in case the directory already exists */if (ret == -1 && errno == EEXIST) {
ret = _chmod(args[1], mode);
}
if (ret == -1) {
return -errno;
}
Post a Comment for "Mkdir In Init.rc"