diff options
author | Mike Frysinger <vapier@gentoo.org> | 2003-01-04 09:44:38 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2003-01-04 09:44:38 +0000 |
commit | c8dda2f33de35de1533afc0256b7df66ff933790 (patch) | |
tree | 09e6fa5adfb725e64e09fdf32612b1f6ce7afbc3 /media-sound/setmixer/files | |
parent | fixed unpack to reflect SRC_URI change (diff) | |
download | gentoo-2-c8dda2f33de35de1533afc0256b7df66ff933790.tar.gz gentoo-2-c8dda2f33de35de1533afc0256b7df66ff933790.tar.bz2 gentoo-2-c8dda2f33de35de1533afc0256b7df66ff933790.zip |
initial ebuild
Diffstat (limited to 'media-sound/setmixer/files')
-rw-r--r-- | media-sound/setmixer/files/digest-setmixer-19941227_rc7 | 2 | ||||
-rw-r--r-- | media-sound/setmixer/files/setmixer.rc | 17 |
2 files changed, 19 insertions, 0 deletions
diff --git a/media-sound/setmixer/files/digest-setmixer-19941227_rc7 b/media-sound/setmixer/files/digest-setmixer-19941227_rc7 new file mode 100644 index 000000000000..66a189639986 --- /dev/null +++ b/media-sound/setmixer/files/digest-setmixer-19941227_rc7 @@ -0,0 +1,2 @@ +MD5 b30985591b239d2913382b97817ba790 setmixer_27DEC94.orig.tar.gz 4444 +MD5 dc027b27117d5e8e692056a8c494647a setmixer_27DEC94-7.diff.gz 3272 diff --git a/media-sound/setmixer/files/setmixer.rc b/media-sound/setmixer/files/setmixer.rc new file mode 100644 index 000000000000..b89d647cd082 --- /dev/null +++ b/media-sound/setmixer/files/setmixer.rc @@ -0,0 +1,17 @@ +#!/sbin/runscript +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-sound/setmixer/files/setmixer.rc,v 1.1 2003/01/04 09:44:38 vapier Exp $ + +start() { + ebegin "Loading mixer settings" + [ ! -e /etc/setmixer.conf ] && setmixer -V | sed -e 's:-::' > /etc/setmixer.conf + setmixer $(cat /etc/setmixer.conf) + eend $? +} + +stop() { + ebegin "Saving mixer settings" + setmixer -V | awk '{print $1" "$3}' > /etc/setmixer.conf + eend $? +} |