diff options
author | Sehong Na <sehong.na@samsung.com> | 2014-05-31 13:01:07 +0900 |
---|---|---|
committer | Sehong Na <sehong.na@samsung.com> | 2014-05-31 13:01:07 +0900 |
commit | 879783df803a387a0e742fdf1b9ec7496035b3ed (patch) | |
tree | 46b2549125f324a18b7ce7ad49a4a3e4d221992f /bin/check-booting-mode.sh | |
download | system-plugin-slp-tizen_2.3.tar.gz system-plugin-slp-tizen_2.3.tar.bz2 system-plugin-slp-tizen_2.3.zip |
Initialize Tizen 2.3submit/tizen_2.3/20140531.1123462.3a_releasetizen_2.3
Diffstat (limited to 'bin/check-booting-mode.sh')
-rwxr-xr-x | bin/check-booting-mode.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/bin/check-booting-mode.sh b/bin/check-booting-mode.sh new file mode 100755 index 0000000..4ec61dc --- /dev/null +++ b/bin/check-booting-mode.sh @@ -0,0 +1,13 @@ +#! /bin/sh +# Checking special mode booting. +# * Charging mode: Turn the phone on with the charger connection. +# * FOTA mode: Firmware update On-The-Air +# + +for i in `/bin/cat /proc/cmdline` ; do + echo $i + if [ "$i" = "charger_detect_boot" ] || [ "$i" = "fota_update_boot" ]; then + exit 0 + fi +done +exit 1 |