kernel_module_loader: Set a prop after completing

 * we can use this as a trigger in init rc, for any task
   that depend on kernel modules being loaded

Change-Id: I7623edc0b6dc799e911a087881f76e9642e005ee
diff --git a/twrp-functions.hpp b/twrp-functions.hpp
index 01afb7a..7bec5a6 100755
--- a/twrp-functions.hpp
+++ b/twrp-functions.hpp
@@ -74,6 +74,8 @@
 	static vector<string> split_string(const string &in, char del, bool skip_empty);
 	static timespec timespec_diff(timespec& start, timespec& end);	            // Return a diff for 2 times
 	static int32_t timespec_diff_ms(timespec& start, timespec& end);            // Returns diff in ms
+	static bool Wait_For_File(const string& path, std::chrono::nanoseconds timeout); // Wait For File, True is success, False is timeout;
+	static bool Wait_For_Battery(std::chrono::nanoseconds timeout);             // Wait For /sys/class/power_supply/battery or TW_CUSTOM_BATTERY_PATH, True is success, False is timeout;
 
 #ifndef BUILD_TWRPTAR_MAIN
 	static void install_htc_dumlock(void);                                      // Installs HTC Dumlock