#!/bin/sh RESET_FLAG="/tmp/ups/usbreset" touch_and_sleep() { touch $RESET_FLAG sleep 60 rm $RESET_FLAG } case "$1" in start) touch_and_sleep & ;; stop) rm $RESET_FLAG ;; restart) ;; esac exit 0