Skip to content

Commit

Permalink
audio/oss: Save mixer before unloading module
Browse files Browse the repository at this point in the history
After installing the oss package, a kernel panic occurs every time the
computer is shut down.

This is because the mixer RC script tries to save the mixer values after
the OSS module is unloaded.  We can avoid this by making OSS unload after
this is done.

[crees] While here, pet rclint.

PR:	ports/270709
  • Loading branch information
martencito authored and crees committed Apr 13, 2023
1 parent ee80e0d commit 4353081
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion audio/oss/Makefile
@@ -1,6 +1,6 @@
PORTNAME= oss
DISTVERSION= 4.2-build2019
PORTREVISION= 3
PORTREVISION= 4
CATEGORIES= audio
MASTER_SITES= http://www.opensound.com/developer/sources/stable/bsd/
DISTNAME= ${PORTNAME}-v${DISTVERSION}-src-bsd
Expand Down
12 changes: 7 additions & 5 deletions audio/oss/files/oss.in
Expand Up @@ -2,19 +2,21 @@

# PROVIDE: oss
# REQUIRE: DAEMON
# BEFORE: mixer
# KEYWORD: nojail shutdown

. /etc/rc.subr

name="oss"
name=oss
rcvar=oss_enable

stop_cmd="oss_stop"
start_cmd="oss_start"
desc="Load Open Sound System kernel modules"

load_rc_config $name

: ${oss_enable=NO}
: ${oss_enable:=NO}

stop_cmd=oss_stop
start_cmd=oss_start

oss_start()
{
Expand Down

0 comments on commit 4353081

Please sign in to comment.