mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
Add mixer 1.0, a startup/shutdown script to preserve mixer settings
across reboots. PR: 35028 Submitted by: Mike Meyer <mwm@mired.org>
This commit is contained in:
parent
714747d291
commit
0a37121ca4
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=54941
@ -98,6 +98,7 @@
|
||||
SUBDIR += mei
|
||||
SUBDIR += memtest
|
||||
SUBDIR += mgeupsd
|
||||
SUBDIR += mixer
|
||||
SUBDIR += mkisofs
|
||||
SUBDIR += mksunbootcd
|
||||
SUBDIR += monitord
|
||||
|
22
sysutils/mixer/Makefile
Normal file
22
sysutils/mixer/Makefile
Normal file
@ -0,0 +1,22 @@
|
||||
# New ports collection makefile for: mixer
|
||||
# Date created: 17 February 2002
|
||||
# Whom: Mike Meyer <mwm@mired.org>
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= mixer
|
||||
PORTVERSION= 1.0
|
||||
CATEGORIES= sysutils
|
||||
MASTER_SITES= # empty
|
||||
DISTFILES= # empty
|
||||
EXTRACT_ONLY= # empty
|
||||
|
||||
MAINTAINER= mwm@mired.org
|
||||
|
||||
NO_BUILD= yes
|
||||
|
||||
do-install:
|
||||
${INSTALL_SCRIPT} ${FILESDIR}/mixer.sh ${PREFIX}/etc/rc.d
|
||||
|
||||
.include <bsd.port.mk>
|
17
sysutils/mixer/files/mixer.sh
Normal file
17
sysutils/mixer/files/mixer.sh
Normal file
@ -0,0 +1,17 @@
|
||||
#!/bin/sh
|
||||
# $FreeBSD$
|
||||
|
||||
MIXERSTATE=/var/db/mixer-state
|
||||
|
||||
case $1 in
|
||||
start)
|
||||
[ -r $MIXERSTATE ] && /usr/sbin/mixer `cat $MIXERSTATE` > /dev/null
|
||||
;;
|
||||
stop)
|
||||
/usr/sbin/mixer -s > $MIXERSTATE
|
||||
;;
|
||||
*)
|
||||
echo "usage: `basename $0` {start|stop}" >&2
|
||||
exit 64
|
||||
;;
|
||||
esac
|
1
sysutils/mixer/pkg-comment
Normal file
1
sysutils/mixer/pkg-comment
Normal file
@ -0,0 +1 @@
|
||||
A startup/shutdown script to preserve mixer settings across reboots
|
3
sysutils/mixer/pkg-descr
Normal file
3
sysutils/mixer/pkg-descr
Normal file
@ -0,0 +1,3 @@
|
||||
This port installs a simple shellscript in ${PREFIX}/etc/rc.d that saves
|
||||
the state of the mixer when the system is shut down, and restores it when
|
||||
the system is rebooted.
|
1
sysutils/mixer/pkg-plist
Normal file
1
sysutils/mixer/pkg-plist
Normal file
@ -0,0 +1 @@
|
||||
etc/rc.d/mixer.sh
|
Loading…
Reference in New Issue
Block a user