S14nightdrop 449 B

12345678910111213141516171819202122232425
  1. #!/bin/sh
  2. ### BEGIN INIT INFO
  3. # Provides:
  4. # Short-Description: Enable NightDrop support
  5. # Description: Prevent the system from dropping FPS during night mode
  6. ### END INIT INFO
  7. . /opt/wz_mini/wz_mini.conf
  8. case "$1" in
  9. start)
  10. echo "#####$(basename "$0")#####"
  11. if [[ "$NIGHT_DROP_DISABLE" == "true" ]]; then
  12. echo "Night Drop Disable, Enabled"
  13. touch /opt/wz_mini/tmp/.nd
  14. fi
  15. ;;
  16. *)
  17. echo "Usage: $0 {start}"
  18. exit 1
  19. ;;
  20. esac