Ticket #2186: blfs-bootscripts-20060910-alsapatch

File blfs-bootscripts-20060910-alsapatch, 1.3 KB (added by ken@…, 19 years ago)

what I'm using

Line 
1diff -Naur blfs-bootscripts-20060910/blfs/init.d/alsa blfs-bootscripts-working/blfs/init.d/alsa
2--- blfs-bootscripts-20060910/blfs/init.d/alsa 2005-08-01 20:29:19.000000000 +0100
3+++ blfs-bootscripts-working/blfs/init.d/alsa 2006-10-17 14:08:58.000000000 +0100
4@@ -13,15 +13,20 @@
5 . $rc_functions
6
7 case "$1" in
8+ start)
9+ boot_mesg "Restoring ALSA volumes..."
10+ loadproc /usr/sbin/alsactl -F restore
11+ ;;
12+
13 stop)
14- boot_mesg "Stopping ALSA... Saving volumes..."
15+ boot_mesg "Saving ALSA volumes..."
16 loadproc /usr/sbin/alsactl store
17 #boot_mesg " Removing MIDI font..."
18 #loadproc sfxload -i
19 ;;
20
21 *)
22- echo "Usage: $0 stop"
23+ echo "Usage: $0 start|stop"
24 exit 1
25 ;;
26 esac
27diff -Naur blfs-bootscripts-20060910/Makefile blfs-bootscripts-working/Makefile
28--- blfs-bootscripts-20060910/Makefile 2006-04-28 01:21:41.000000000 +0100
29+++ blfs-bootscripts-working/Makefile 2006-10-17 14:11:45.000000000 +0100
30@@ -34,6 +34,7 @@
31 ln -sf ../init.d/alsa ${EXTDIR}/rc.d/rc0.d/K35alsa
32 ln -sf ../init.d/alsa ${EXTDIR}/rc.d/rc1.d/K35alsa
33 ln -sf ../init.d/alsa ${EXTDIR}/rc.d/rc6.d/K35alsa
34+ ln -sf ../init.d/alsa ${EXTDIR}/rc.d/rcsysinit.d/S95alsa
35
36 install-apache: create-dirs
37 install -m ${MODE} blfs/init.d/apache ${EXTDIR}/rc.d/init.d/