From 0a37121ca4245e24b2df7fc225c6d595ae330df0 Mon Sep 17 00:00:00 2001 From: Pete Fritchman Date: Wed, 20 Feb 2002 05:38:44 +0000 Subject: [PATCH] Add mixer 1.0, a startup/shutdown script to preserve mixer settings across reboots. PR: 35028 Submitted by: Mike Meyer --- sysutils/Makefile | 1 + sysutils/mixer/Makefile | 22 ++++++++++++++++++++++ sysutils/mixer/files/mixer.sh | 17 +++++++++++++++++ sysutils/mixer/pkg-comment | 1 + sysutils/mixer/pkg-descr | 3 +++ sysutils/mixer/pkg-plist | 1 + 6 files changed, 45 insertions(+) create mode 100644 sysutils/mixer/Makefile create mode 100644 sysutils/mixer/files/mixer.sh create mode 100644 sysutils/mixer/pkg-comment create mode 100644 sysutils/mixer/pkg-descr create mode 100644 sysutils/mixer/pkg-plist diff --git a/sysutils/Makefile b/sysutils/Makefile index 3468b222c4a1..b8a238238aeb 100644 --- a/sysutils/Makefile +++ b/sysutils/Makefile @@ -98,6 +98,7 @@ SUBDIR += mei SUBDIR += memtest SUBDIR += mgeupsd + SUBDIR += mixer SUBDIR += mkisofs SUBDIR += mksunbootcd SUBDIR += monitord diff --git a/sysutils/mixer/Makefile b/sysutils/mixer/Makefile new file mode 100644 index 000000000000..8e37d5c96e0a --- /dev/null +++ b/sysutils/mixer/Makefile @@ -0,0 +1,22 @@ +# New ports collection makefile for: mixer +# Date created: 17 February 2002 +# Whom: Mike Meyer +# +# $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 diff --git a/sysutils/mixer/files/mixer.sh b/sysutils/mixer/files/mixer.sh new file mode 100644 index 000000000000..3967b54fe93d --- /dev/null +++ b/sysutils/mixer/files/mixer.sh @@ -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 diff --git a/sysutils/mixer/pkg-comment b/sysutils/mixer/pkg-comment new file mode 100644 index 000000000000..bb70d4137d5e --- /dev/null +++ b/sysutils/mixer/pkg-comment @@ -0,0 +1 @@ +A startup/shutdown script to preserve mixer settings across reboots diff --git a/sysutils/mixer/pkg-descr b/sysutils/mixer/pkg-descr new file mode 100644 index 000000000000..1cd92dc4849e --- /dev/null +++ b/sysutils/mixer/pkg-descr @@ -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. diff --git a/sysutils/mixer/pkg-plist b/sysutils/mixer/pkg-plist new file mode 100644 index 000000000000..524faaca5e98 --- /dev/null +++ b/sysutils/mixer/pkg-plist @@ -0,0 +1 @@ +etc/rc.d/mixer.sh