Add GC2395/CAMSS rear camera driver and fix audio, earpiece, micbias, and modem routing
This commit is contained in:
Executable
+29
@@ -0,0 +1,29 @@
|
||||
#!/bin/sh
|
||||
# SPDX-License-Identifier: AGPL-3.0-only
|
||||
# Copyright 2022 Sxmo Contributors
|
||||
|
||||
# This script is responsible for starting wob, or xob, and making sure it exits cleanly
|
||||
|
||||
# include common definitions
|
||||
# shellcheck source=scripts/core/sxmo_common.sh
|
||||
. sxmo_common.sh
|
||||
|
||||
export WOB_DISABLE_PLEDGE=1
|
||||
ob_sock="$XDG_RUNTIME_DIR"/sxmo.obsock
|
||||
rm -f "$ob_sock"
|
||||
mkfifo "$ob_sock"
|
||||
|
||||
# By opening the socket as read-write it isn't closed after the first write
|
||||
# see https://unix.stackexchange.com/questions/392697
|
||||
"${1:-wob}" <> "$ob_sock" &
|
||||
OBPID=$!
|
||||
|
||||
finish() {
|
||||
# Only finish once
|
||||
trap - TERM INT EXIT
|
||||
kill "$OBPID"
|
||||
rm -f "$ob_sock"
|
||||
}
|
||||
trap 'finish' TERM INT EXIT
|
||||
|
||||
wait "$OBPID"
|
||||
Reference in New Issue
Block a user