mirror of
https://github.com/commaai/agnos-builder.git
synced 2026-07-19 05:42:03 +08:00
fe3c65b79f
* unpack the debs * update rest * ignore
36 lines
790 B
Bash
Executable File
36 lines
790 B
Bash
Executable File
#!/bin/sh
|
|
###############################################################################
|
|
#
|
|
# This script is used for System V init scripts to start adsp
|
|
#
|
|
# Copyright (c) 2012-2016 Qualcomm Technologies, Inc.
|
|
# All Rights Reserved.
|
|
# Confidential and Proprietary - Qualcomm Technologies, Inc.
|
|
#
|
|
###############################################################################
|
|
|
|
set -e
|
|
|
|
case "$1" in
|
|
start)
|
|
echo -n "Starting adsp: "
|
|
/usr/local/qr-linux/adsp-start.sh
|
|
echo "done"
|
|
;;
|
|
stop)
|
|
echo -n "Stopping adsp: "
|
|
echo 0 > /sys/kernel/boot_adsp/boot
|
|
echo "done"
|
|
;;
|
|
restart)
|
|
$0 stop
|
|
$0 start
|
|
;;
|
|
*)
|
|
echo "Usage adsp.sh { start | stop | restart}" >&2
|
|
exit 1
|
|
;;
|
|
esac
|
|
|
|
exit 0
|