blob: aa4dff59f1aed8528a2f852151a3e85fd685376a [file] [log] [blame]
#!/bin/sh
. /etc/utils.sh
platform=$(cat /etc/platform)
case "$1" in
start)
if startswith "$platform" "GFLT3"; then
echo "Starting lasertune."
babysit 5 lasertune 2>&1 | logos lasertune &
fi
;;
stop)
pkillwait -x lasertune
;;
restart)
$0 stop; $0 start
;;
*)
echo "Usage: $0 {start|stop|restart}"
exit 1
;;
esac