summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Volkov <pva@gentoo.org>2015-02-09 11:24:14 +0300
committerPeter Volkov <pva@gentoo.org>2015-02-09 11:24:14 +0300
commit5ab8c0f6bd51059243f6bcf84b7d858530f36135 (patch)
tree3d52ab7cf51cd30bcbc4cc9cc06923d862ecf43b /net-wireless/btsco/files/rc.headset
parentRedmine version bump. (diff)
downloadpva-5ab8c0f6bd51059243f6bcf84b7d858530f36135.tar.gz
pva-5ab8c0f6bd51059243f6bcf84b7d858530f36135.tar.bz2
pva-5ab8c0f6bd51059243f6bcf84b7d858530f36135.zip
Drop lots of old packagesHEADmaster
app-admin/eselect-yacc app-laptop/hdapsd app-text/languagetool dev-util/abi-compliance-checker dev-util/silentbob media-gfx media-libs/jpeg media-libs/tiff net-p2p/xbtt net-wireless/btsco-kernel net-wireless/btsco sys-apps/groff sys-apps/man-db sys-devel/bison sys-fs/ocfs2-tools sys-kernel/gentoo-sources x11-libs/Xaw3d x11-libs/qt-3!
Diffstat (limited to 'net-wireless/btsco/files/rc.headset')
-rw-r--r--net-wireless/btsco/files/rc.headset48
1 files changed, 0 insertions, 48 deletions
diff --git a/net-wireless/btsco/files/rc.headset b/net-wireless/btsco/files/rc.headset
deleted file mode 100644
index db275e6..0000000
--- a/net-wireless/btsco/files/rc.headset
+++ /dev/null
@@ -1,48 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2005 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-
-depend() {
- need bluetooth alsasound
-}
-
-checkconfig() {
- # check that the configuration file has been configured.
- if [ -z "$BDADDR" ]; then
- eerror "You should setup BDADDR in /etc/conf.d/headset."
- return 1
- fi
-
- # define BTSCO in /etc/conf.d/headset to be btsco or btsco2
- # defaults to btsco
- if [ -z "$BTSCO" ]; then
- BTSCO=btsco
- fi
-
- if ! [ -d /sys/module/snd_bt_sco ]; then
- ebegin "Loading bluetooth-alsa kernel module (snd_bt_sco)."
- /sbin/modprobe snd-bt-sco
- eend $? || return 1
- fi
-}
-
-start() {
- checkconfig || return 1
-
- ebegin "Connecting to headset"
- start-stop-daemon --start \
- --make-pidfile --pidfile /var/run/$BTSCO \
- --background --exec /usr/bin/$BTSCO -- $BDADDR
- sleep 1
- ps -C $BTSCO >/dev/null
- eend $?
-}
-
-stop() {
- ebegin "Stopping $BTSCO daemon"
- start-stop-daemon --stop --quiet --pidfile /var/run/$BTSCO
- eend ${?}
-
-}
-