UPS: apcupsd clean sources
[tomato.git] / release / src / router / apcupsd / platforms / unifix / halt.sh
blob1027a17b6f58eb8e72ede883778519a618e84432
1 #! /bin/sh
3 # /etc/init.d/shutdown (and symlinked to reboot)
6 # This umount is wrong here, but one tester reported data loss without it.
7 # If your partition gets destroyed, try to uncomment the umount.
9 echo "Unmounting file systems"
10 umount -a
12 #Powerfail situation, kill power
13 if [ -f /etc/powerfail ]; then
14 echo "APCUPSD to the Rescue!"
15 echo
16 /sbin/apccontrol killpower
17 echo
20 echo "Halting System"
21 exec halt >/dev/console 2>&1