1234567891011121314151617 |
- #!/bin/sh
- [ "`whoami`" != "root" ] && exec sudo -A ${0} ${@}
- [ "$DISPLAY" ] && which wmpoweroff &>/dev/null && exec wmpoweroff
- /etc/rc.d/rc.shutdown
- POWEROFFEXE='/bin/busybox poweroff'
- [ -f /sbin/minit ] && POWEROFFEXE='hard-reboot POWER_OFF'
- exec ${POWEROFFEXE}
|