28 lines
331 B
Bash
28 lines
331 B
Bash
#!/bin/sh
|
|
|
|
# Starts Optee Tee-Supplicant service.
|
|
start() {
|
|
printf "Starting tee-supplicant service: \n"
|
|
|
|
/usr/bin/tee-supplicant &
|
|
}
|
|
|
|
stop() {
|
|
printf "Stopping tee-supplicant service: \n"
|
|
|
|
#/bin/kill -KILL $MAINPID
|
|
}
|
|
|
|
case "$1" in
|
|
start)
|
|
start
|
|
;;
|
|
stop)
|
|
stop
|
|
;;
|
|
*)
|
|
echo "Usage: $0 {start|stop}"
|
|
exit 1
|
|
esac
|
|
|
|
exit $? |