mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-10-16 09:52:31 +00:00
Make post-fs-data scripts block at most 35 secs
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
#include <magisk.hpp>
|
||||
#include <selinux.hpp>
|
||||
|
||||
#define quote(s) #s
|
||||
#define str(s) quote(s)
|
||||
|
||||
constexpr char MAGISK_RC[] =
|
||||
"\n"
|
||||
|
||||
@@ -8,7 +11,7 @@ constexpr char MAGISK_RC[] =
|
||||
" start logd\n"
|
||||
" rm " UNBLOCKFILE "\n"
|
||||
" start %2$s\n"
|
||||
" wait " UNBLOCKFILE " 40\n"
|
||||
" wait " UNBLOCKFILE " " str(POST_FS_DATA_WAIT_TIME) "\n"
|
||||
" rm " UNBLOCKFILE "\n"
|
||||
"\n"
|
||||
|
||||
|
Reference in New Issue
Block a user