Make post-fs-data scripts block at most 35 secs

This commit is contained in:
topjohnwu
2020-12-17 16:54:53 -08:00
parent 086059ec30
commit eee7f097e3
5 changed files with 92 additions and 29 deletions

View File

@@ -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"