init.kernel.post_boot-cliffs.sh 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. #=============================================================================
  2. # Copyright (c) 2022-2023 Qualcomm Technologies, Inc.
  3. # All Rights Reserved.
  4. # Confidential and Proprietary - Qualcomm Technologies, Inc.
  5. #
  6. # Copyright (c) 2009-2012, 2014-2019, The Linux Foundation. All rights reserved.
  7. #
  8. # Redistribution and use in source and binary forms, with or without
  9. # modification, are permitted provided that the following conditions are met:
  10. # * Redistributions of source code must retain the above copyright
  11. # notice, this list of conditions and the following disclaimer.
  12. # * Redistributions in binary form must reproduce the above copyright
  13. # notice, this list of conditions and the following disclaimer in the
  14. # documentation and/or other materials provided with the distribution.
  15. # * Neither the name of The Linux Foundation nor
  16. # the names of its contributors may be used to endorse or promote
  17. # products derived from this software without specific prior written
  18. # permission.
  19. #
  20. # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
  21. # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  22. # IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  23. # NON-INFRINGEMENT ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
  24. # CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
  25. # EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
  26. # PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
  27. # OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
  28. # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
  29. # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
  30. # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  31. #=============================================================================
  32. rev=`cat /sys/devices/soc0/revision`
  33. echo 4 > /proc/sys/kernel/printk
  34. # Change console log level as per console config property
  35. console_config=`getprop persist.vendor.console.silent.config`
  36. case "$console_config" in
  37. "1")
  38. echo "Enable console config to $console_config"
  39. echo 0 > /proc/sys/kernel/printk
  40. ;;
  41. *)
  42. echo "Enable console config to $console_config"
  43. ;;
  44. esac
  45. setprop vendor.post_boot.parsed 1