disable sync_on_suspend when flag is set

Bug: 285395636
Test: suspend/resume testing
Change-Id: I2d97d8366b864ab3e72d7ae38a0f4906dc74ec6f
diff --git a/rootdir/init.rc b/rootdir/init.rc
index 8eec16c..fb64736 100644
--- a/rootdir/init.rc
+++ b/rootdir/init.rc
@@ -1056,6 +1056,9 @@
     write /proc/sys/vm/dirty_expire_centisecs 200
     write /proc/sys/vm/dirty_background_ratio  5
 
+on boot && property:suspend.disable_sync_on_suspend=true
+    write /sys/power/sync_on_suspend 0
+
 on boot
     # basic network init
     ifup lo