#!/bin/sh if [ -e /etc/wakeup_reboot ]; then /sbin/reboot else /sbin/poweroff fi