Changeset fe88f584 for multimedia/libdriv
- Timestamp:
- 03/28/2004 07:14:54 AM (20 years ago)
- Branches:
- 10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 6.0, 6.1, 6.2, 6.2.0, 6.2.0-rc1, 6.2.0-rc2, 6.3, 6.3-rc1, 6.3-rc2, 6.3-rc3, 7.10, 7.4, 7.5, 7.6, 7.6-blfs, 7.6-systemd, 7.7, 7.8, 7.9, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, basic, bdubbs/svn, elogind, gnome, kde5-13430, kde5-14269, kde5-14686, kea, ken/TL2024, ken/inkscape-core-mods, ken/tuningfonts, krejzi/svn, lazarus, lxqt, nosym, perl-modules, plabs/newcss, plabs/python-mods, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, systemd-11177, systemd-13485, trunk, upgradedb, v5_1, v5_1-pre1, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
- Children:
- babc75b
- Parents:
- ae9c528
- Location:
- multimedia/libdriv
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
multimedia/libdriv/alsa/utils/alsa-utils-config.xml
rae9c528 rfe88f584 19 19 installs a script as <filename>/etc/rc.d/init.d/alsasound</filename>. While it 20 20 is possible to use this script, it contains a lot of extraneous detail which 21 isn't needed on an <acronym>LFS</acronym> system and so we create our own 22 script <filename>/etc/rc.d/init.d/alsa</filename>.</para> 21 isn't needed on an <acronym>LFS</acronym> system and so we install the init 22 script <filename>/etc/rc.d/init.d/alsa</filename> included in the 23 <xref linkend="intro-important-bootscripts"/> package.</para> 23 24 24 <para>To create the <application><acronym>ALSA</acronym></application> script, do the following:</para> 25 26 <screen><userinput><command>cat > /etc/rc.d/init.d/alsa << "EOF"</command> 27 #!/bin/sh 28 # Begin $rc_base/init.d/alsa 29 30 # Based on sysklogd script from LFS-3.1 and earlier. 31 # Rewritten by Gerard Beekmans - gerard@linuxfromscratch.org 32 # ALSA specific parts by Mark Hymers - markh@linuxfromscratch.org 33 # Stores mixer settings in the default location: /etc/asound.state 34 35 . /etc/sysconfig/rc 36 . $rc_functions 37 38 case "$1" in 39 start) 40 echo "Starting ALSA... Restoring volumes..." 41 loadproc /usr/sbin/alsactl restore 42 #echo " Loading MIDI font..." 43 #loadproc sfxload /path/to/soundfont 44 ;; 45 46 stop) 47 echo "Stopping ALSA... Saving volumes......" 48 loadproc /usr/sbin/alsactl store 49 #echo " Removing MIDI font.........." 50 #loadproc sfxload -i 51 ;; 52 53 restart) 54 $0 stop 55 /bin/sleep 1 56 $0 start 57 ;; 58 59 *) 60 echo "Usage: $0 {start|stop|restart}" 61 exit 1 62 ;; 63 64 esac 65 66 # End $rc_base/init.d/alsa 67 <command>EOF 68 chmod 755 /etc/rc.d/init.d/alsa</command></userinput></screen> 69 70 <para>You can then create the appropriate symlinks:</para> 71 <screen><userinput><command>cd /etc/rc.d/init.d && 72 ln -sf ../init.d/alsa ../rc0.d/K35alsa && 73 ln -sf ../init.d/alsa ../rc1.d/K35alsa && 74 ln -sf ../init.d/alsa ../rc2.d/S40alsa && 75 ln -sf ../init.d/alsa ../rc3.d/S40alsa && 76 ln -sf ../init.d/alsa ../rc4.d/S40alsa && 77 ln -sf ../init.d/alsa ../rc5.d/S40alsa && 78 ln -sf ../init.d/alsa ../rc6.d/K35alsa</command></userinput></screen> 25 <screen><userinput><command>make install-alsa</command></userinput></screen> 79 26 80 27 <para>Note that all channels of your soundcard are muted by default. You can -
multimedia/libdriv/libdriv.xml
rae9c528 rfe88f584 25 25 &id3lib; 26 26 &flac; 27 &libdvdcss; 27 28 &libdvdread; 28 &libdvdcss;29 29 &libdv; 30 30 &liba52;
Note:
See TracChangeset
for help on using the changeset viewer.