2013/7/25 <i...@higgs.linuxfromscratch.org>: > Author: igor > Date: Thu Jul 25 02:50:36 2013 > New Revision: 11499 > > Log: > ALSA restore state in the bootscript > > Modified: > trunk/BOOK/general.ent > trunk/bootscripts/ChangeLog > trunk/bootscripts/Makefile > trunk/bootscripts/blfs/init.d/alsa > > Modified: trunk/BOOK/general.ent > ============================================================================== > --- trunk/BOOK/general.ent Wed Jul 24 23:19:04 2013 (r11498) > +++ trunk/BOOK/general.ent Thu Jul 25 02:50:36 2013 (r11499) > @@ -68,7 +68,7 @@ > <!ENTITY lfs-vim-version "7.3"> > <!-- End LFS versions --> > > -<!ENTITY blfs-bootscripts-version "20130721"> > +<!ENTITY blfs-bootscripts-version "20130725"> > <!ENTITY blfs-bootscripts-download > "&downloads-root;/blfs-bootscripts-&blfs-bootscripts-version;.tar.bz2"> > > <!ENTITY blfs-wiki > "http://wiki.&lfs-domainname;/blfs/wiki"> > > Modified: trunk/bootscripts/ChangeLog > ============================================================================== > --- trunk/bootscripts/ChangeLog Wed Jul 24 23:19:04 2013 (r11498) > +++ trunk/bootscripts/ChangeLog Thu Jul 25 02:50:36 2013 (r11499) > @@ -1,3 +1,6 @@ > +2013-07-25 Igor Živković <cont...@igor-zivkovic.from.hr> > + * Added restore state to alsa bootscript > + > 2013-07-21 Igor Živković <cont...@igor-zivkovic.from.hr> > * Added unbound bootscript > > > Modified: trunk/bootscripts/Makefile > ============================================================================== > --- trunk/bootscripts/Makefile Wed Jul 24 23:19:04 2013 (r11498) > +++ trunk/bootscripts/Makefile Thu Jul 25 02:50:36 2013 (r11499) > @@ -55,6 +55,7 @@ > ln -sf ../init.d/alsa ${EXTDIR}/rc.d/rc0.d/K35alsa > ln -sf ../init.d/alsa ${EXTDIR}/rc.d/rc1.d/K35alsa > ln -sf ../init.d/alsa ${EXTDIR}/rc.d/rc6.d/K35alsa > + ln -sf ../init.d/alsa ${EXTDIR}/rc.d/rcS.d/S60alsa > > install-httpd: create-dirs > install -m ${MODE} blfs/init.d/httpd ${EXTDIR}/rc.d/init.d/ > @@ -537,6 +538,7 @@ > rm -f ${EXTDIR}/rc.d/rc0.d/K35alsa > rm -f ${EXTDIR}/rc.d/rc1.d/K35alsa > rm -f ${EXTDIR}/rc.d/rc6.d/K35alsa > + rm -f ${EXTDIR}/rc.d/rcS.d/S60alsa > > uninstall-httpd: > rm -f ${EXTDIR}/rc.d/init.d/httpd > > Modified: trunk/bootscripts/blfs/init.d/alsa > ============================================================================== > --- trunk/bootscripts/blfs/init.d/alsa Wed Jul 24 23:19:04 2013 > (r11498) > +++ trunk/bootscripts/blfs/init.d/alsa Thu Jul 25 02:50:36 2013 > (r11499) > @@ -1,12 +1,12 @@ > #!/bin/sh > ######################################################################## > -# Begin sshd > +# Begin alsa > # > -# Description : Store alsa settings at shutdown > +# Description : Restore and store ALSA settings > # > # Author : Bruce Dubbs - bdu...@linuxfromscratch.org > # > -# Version : LFS 7.0 > +# Version : BLFS SVN > # > ######################################################################## > > @@ -16,11 +16,12 @@ > # Should-Start: > # Required-Stop: sendsignals > # Should-Stop: > -# Default-Start: > +# Default-Start: S > # Default-Stop: 0 1 6 > -# Short-Description: Stores alsa mixer settings. > -# Description: Stores mixer settings in the default location: > /etc/asound.state. > -# X-LFS-Provided-By: LFS > +# Short-Description: Restore and store ALSA mixer settings. > +# Description: Restores and stores ALSA mixer settings in the default > +# location: /var/lib/alsa/asound.state. > +# X-LFS-Provided-By: BLFS > ### END INIT INFO > > . /lib/lsb/init-functions > @@ -29,6 +30,12 @@ > #$Date$ > > case "$1" in > + start) > + log_info_msg "Starting ALSA... Restoring volumes..." > + /usr/sbin/alsactl restore > + evaluate_retval > + ;; > + > stop) > log_info_msg "Stopping ALSA... Saving volumes..." > /usr/sbin/alsactl store > @@ -36,9 +43,9 @@ > ;; > > *) > - echo "Usage: $0 stop" > + echo "Usage: $0 {start|stop}" > exit 1 > ;; > esac > > -# End /etc/init.d/alsa > +# End alsa > -- > http://linuxfromscratch.org/mailman/listinfo/blfs-book > FAQ: http://www.linuxfromscratch.org/blfs/faq.html > Unsubscribe: See the above information page
The udev's alsa restore script not work for you guys either ? -- http://linuxfromscratch.org/mailman/listinfo/blfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page