Tizen 2.0 Release
[adaptation/system-plugin-slp.git] / bin / check-booting-mode.sh
1 #! /bin/sh
2 # Checking special mode booting.
3 #  * Charging mode: Turn the phone on with the charger connection.
4 #  * FOTA mode: Firmware update On-The-Air
5 #
6
7 for i in `/bin/cat /proc/cmdline` ; do
8         echo $i
9         if [ "$i" = "charger_detect_boot" ] || [ "$i" = "fota_update_boot" ]; then
10                 exit 0
11         fi
12 done
13 exit 1