From 7d69d31353904f7de13ed708ee326660908d89ff Mon Sep 17 00:00:00 2001 From: Dmitry Kovalev Date: Tue, 19 Jun 2018 10:46:39 -0700 Subject: [PATCH] Remove systemd services. alsa-init.service palyed silence to init ALSA state (just in case) to properly show Pi volume control. We removed Pi volume control and use PulseAudio Volume Control now. Change-Id: Ifa13cd475f85ab05eee6a49ef3a2d3d328941ecf --- scripts/install-services.sh | 37 ------------------------------------- systemd/alsa-init.service | 16 ---------------- 2 files changed, 53 deletions(-) delete mode 100755 scripts/install-services.sh delete mode 100644 systemd/alsa-init.service diff --git a/scripts/install-services.sh b/scripts/install-services.sh deleted file mode 100755 index 4474d1f7..00000000 --- a/scripts/install-services.sh +++ /dev/null @@ -1,37 +0,0 @@ -#!/bin/bash -# -# Install systemd service files for running on startup. -# -# Copyright 2017 Google Inc. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -set -o errexit - -if [[ $EUID -ne 0 ]]; then - echo "This script must be run as root (use sudo)" 1>&2 - exit 1 -fi - -cd "$(dirname "${BASH_SOURCE[0]}")/.." -repo_path="$PWD" - -for service in systemd/*.service; do - sed "s:/home/pi/AIY-projects-python:${repo_path}:g" "$service" \ - > "/lib/systemd/system/$(basename "$service")" -done - -# voice-recognizer is not enabled by default, as it doesn't work until -# credentials are set up, so we explicitly enable the other services. -systemctl enable alsa-init.service - diff --git a/systemd/alsa-init.service b/systemd/alsa-init.service deleted file mode 100644 index 0841d7c3..00000000 --- a/systemd/alsa-init.service +++ /dev/null @@ -1,16 +0,0 @@ -# Play 1 s of silence if asound.state does not exists so lxpanel's volumealsa -# can initialize properly. - -[Unit] -Description=alsa init service -ConditionPathExists=!/etc/alsa/state-daemon.conf -ConditionPathExists=!/var/lib/alsa/asound.state -DefaultDependencies=no -After=local-fs.target sysinit.target - -[Service] -Type=oneshot -ExecStart=-/usr/bin/aplay -q -d 1 -c 1 -t raw -f S32_LE /dev/zero - -[Install] -WantedBy=basic.target