Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
en:odroid-ups2 [2016/03/23 09:57] joy.cho [Auto shutdown Script] |
en:odroid-ups2 [2016/04/20 14:28] joy.cho [Auto shutdown Script] |
||
---|---|---|---|
Line 201: | Line 201: | ||
then | then | ||
echo "battery is lower than 3.7V" | echo "battery is lower than 3.7V" | ||
- | if test $MODEL = "ODROID-C2" | + | /sbin/shutdown -P 1 |
- | then | + | |
- | /sbin/poweroff | + | |
- | else | + | |
- | /sbin/shutdown -P 1 | + | |
- | fi | + | |
else | else | ||
echo "battery is good" | echo "battery is good" |