2 # Checking special mode booting.
3 # * Charging mode: Turn the phone on with the charger connection.
4 # * FOTA mode: Firmware update On-The-Air
7 for i in `/bin/cat /proc/cmdline` ; do
9 if [ "$i" = "charger_detect_boot" ] || [ "$i" = "fota_update_boot" ]; then