8 echo "charging animation ..."
10 #export HW-dependent ENV variables which are read by charging-animation
11 HW_NAME=`cat /proc/cpuinfo | grep Hardware | awk -F ':' '{print $2}' | tr -d ' '`
12 if [ "${HW_NAME}" = "TRATS" ]; then
13 source @CFGDIR@/tizen.cfg
15 source @CFGDIR@/tizen.cfg
18 source @CFGDIR@/common.cfg
20 # export the platform specific variables
21 source /etc/sysconfig/charging-animation
23 echo powersave > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
25 INPUT_SEARCH_BASE=/sys/class/input
26 CANDIDATE=`ls ${INPUT_SEARCH_BASE} | grep input`
31 DEV_NAME=`cat ${INPUT_SEARCH_BASE}/${f}/name`
32 if [ "${DEV_NAME}" = "gpio-keys" ]; then
37 if [ "X${FOUND}" = "X" ]; then
38 echo "[error] cannot find key input event node"
40 FOUND_NUM=${FOUND##input}
41 KEY_EVENT=/dev/input/event${FOUND_NUM}
43 /usr/bin/charging-animation $KEY_EVENT &
47 charging_boot=`grep charger_detect_boot /proc/cmdline`
48 if [ "z$charging_boot" != "z" ]; then
52 syslogd -O /opt/var/log/messages-chrg