#!/bin/sh st510-status && exit # try to switch it on -- shouldn't be necessary as /etc/rc.d/init.d/internet # does this as well at startup (e.g. when power has been restored). echo "Powering on st510" st510 on sleep 100 st510-status && exit echo "st510 not ok" # the hard way echo "Powering off st510" st510 off echo "Powering on st510" st510 on # nothing else we can do -- we'll come back in an hour