#!/bin/sh case "$1" in start) autonight -d 3 ;; stop) kill -9 $(pidof autonight) ;; *) echo "Usage: $0 {start|stop}" exit 1 ;; esac