mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-12-27 21:23:23 -08:00
Rename rules to preinit
It is possible that we will allow more preinit files for modules. Rename the partition and folders from rules to preinit.
This commit is contained in:
@@ -122,7 +122,6 @@ int magisk_main(int argc, char *argv[]) {
|
||||
do_reboot = 1;
|
||||
} else {
|
||||
usage();
|
||||
exit(1);
|
||||
}
|
||||
int fd = connect_daemon(MainRequest::REMOVE_MODULES);
|
||||
write_int(fd, do_reboot);
|
||||
@@ -134,8 +133,8 @@ int magisk_main(int argc, char *argv[]) {
|
||||
return 0;
|
||||
} else if (argc >= 3 && argv[1] == "--install-module"sv) {
|
||||
install_module(argv[2]);
|
||||
} else if (argv[1] == "--rules-device"sv) {
|
||||
auto dev = find_rules_device();
|
||||
} else if (argv[1] == "--preinit-device"sv) {
|
||||
auto dev = find_preinit_device();
|
||||
if (dev) printf("%u:%u\n", major(dev), minor(dev));
|
||||
return dev ? 0 : 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user