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:
@@ -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
|
||||
Reference in New Issue
Block a user