Added rest

这个提交包含在:
2013-03-23 22:22:34 +01:00
父节点 7fb0095fbc
当前提交 f5a9026bd0
共有 18 个文件被更改,包括 4948 次插入0 次删除

28
sbin/battery-watchdog 可执行文件
查看文件

@ -0,0 +1,28 @@
#!/bin/sh
#Modified, we warn only now....
#fill_charger()
#{
#usb=`cat /sys/bus/platform/devices/twl4030_usb/vbus`
#wall=`cat /sys/bus/platform/devices/musb_hdrc/charger`
#if [ "$usb" = "on" ] || [ "$wall" = 1 ] ; then
#charger=1
#else
#charger=0
#fi
#}
while [ true ] ; do
cap=`cat /sys/class/power_supply/bq27200-0/capacity`
#fill_charger
#if [ $cap -le 55 -a $charger -eq 0 ] ; then
if [ $cap -le 45 ] ; then
#echo "Attention: Plugin the charger soon to not run out of power. Current: $cap%. To disable this message, type \"stfu\""
echo "Attention: Charge the battery (by running the charger script) to not run out of power. Current: $cap%. To disable this message, type \"stfu\""
fi
sleep 20
done

3
sbin/mdev.sh 可执行文件
查看文件

@ -0,0 +1,3 @@
#!/bin/sh
[ -e /lib/firmware/$FIRMWARE ] || echo -1 > /sys/$DEVPATH/loading
/sbin/mdev

2
sbin/stfu 可执行文件
查看文件

@ -0,0 +1,2 @@
#!/bin/sh
killall battery-watchdog