1234567891011121314151617181920212223242526272829 |
- #!/bin/sh
- PATH=/sbin:/bin:/usr/sbin:/usr/bin
- if test -x /etc/init.d/ups-monitor
- then
- /etc/init.d/ups-monitor poweroff
- fi
- hddown="-h"
- if grep -qs '^md.*active' /proc/mdstat
- then
- hddown=""
- fi
- halt -d -f -p $hddown
- : exit 0
|