S16factorycheck 560 B

1234567891011121314151617181920212223242526
  1. #!/bin/sh
  2. ### BEGIN INIT INFO
  3. # Provides:
  4. # Short-Description: Disable factorycheck
  5. # Description: On T31 devices, we must disable factory check to prevent it from unmounting our binds.
  6. ### END INIT INFO
  7. . /opt/wz_mini/wz_mini.conf
  8. case "$1" in
  9. start)
  10. echo "#####$(basename "$0")#####"
  11. if [ -f /opt/wz_mini/tmp/.T31 ]; then
  12. mount --bind /opt/wz_mini/bin/factorycheck /system/bin/factorycheck
  13. touch /tmp/usrflag
  14. echo "Replace factorycheck with dummy, to prevent bind unmount"
  15. fi
  16. ;;
  17. *)
  18. echo "Usage: $0 {start}"
  19. exit 1
  20. ;;
  21. esac