[T106][ZXW-22]7520V3SCV2.01.01.02P42U09_VEC_V0.8_AP_VEC origin source commit

Change-Id: Ic6e05d89ecd62fc34f82b23dcf306c93764aec4b
diff --git a/ap/build/check_file_mode.sh b/ap/build/check_file_mode.sh
new file mode 100755
index 0000000..22ee005
--- /dev/null
+++ b/ap/build/check_file_mode.sh
@@ -0,0 +1,13 @@
+#!/bin/bash
+
+DEST_DIR=$1
+
+chmod -R a+r $DEST_DIR/etc_ro
+find $DEST_DIR/bin -type f | xargs chmod a+x
+find $DEST_DIR/sbin -type f | xargs chmod a+x
+find $DEST_DIR/etc -type f | xargs chmod 644
+chmod 644 $DEST_DIR/etc/passwd
+chmod 640 $DEST_DIR/etc/shadow
+chmod 644 $DEST_DIR/etc/group
+chmod 644 $DEST_DIR/etc/services
+chmod 744 $DEST_DIR/etc/rc