#!/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 | |