[Lunar-commits] CVS: moonbase/audio/alsa-utils DETAILS, 1.13, 1.14 POST_INSTALL, 1.1.1.1, 1.2

Moritz Heiber moe at lunar-linux.org
Sun Jan 25 17:24:21 GMT 2004


Update of /var/cvs/lunar/moonbase/audio/alsa-utils
In directory dbguin.lunar-linux.org:/tmp/cvs-serv3193

Modified Files:
	DETAILS POST_INSTALL 
Log Message:
This is some init script to restore the alsa sound settings on
2.6 kernels. Its tested by me .. comments are appreciated.


Index: DETAILS
===================================================================
RCS file: /var/cvs/lunar/moonbase/audio/alsa-utils/DETAILS,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -d -r1.13 -r1.14
--- DETAILS	9 Jan 2004 21:27:08 -0000	1.13
+++ DETAILS	25 Jan 2004 17:24:19 -0000	1.14
@@ -1,10 +1,12 @@
           MODULE=alsa-utils
          VERSION=1.0.1
           SOURCE=$MODULE-$VERSION.tar.bz2
+	 SOURCE2=alsasettings
 SOURCE_DIRECTORY=$BUILD_DIRECTORY/$MODULE-$VERSION
    SOURCE_URL[0]=ftp://ftp.alsa-project.org/pub/utils/$SOURCE
    SOURCE_URL[1]=ftp://ftp.silug.org/pub/alsa/utils/$SOURCE
    SOURCE_URL[2]=ftp://ftp.sunet.se/pub/Linux/alsa/utils/$SOURCE
+     SOURCE2_URL=$PATCH_URL/$SOURCE2
       SOURCE_VFY=md5:ff54117a83d9edb3b9ad0ccc93ebde51
         WEB_SITE=http://www.alsa-project.org/
          ENTERED=20010922

Index: POST_INSTALL
===================================================================
RCS file: /var/cvs/lunar/moonbase/audio/alsa-utils/POST_INSTALL,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -d -r1.1.1.1 -r1.2
--- POST_INSTALL	21 Aug 2002 00:55:09 -0000	1.1.1.1
+++ POST_INSTALL	25 Jan 2004 17:24:19 -0000	1.2
@@ -7,3 +7,36 @@
   echo  "# alsactl  save"
 
 fi
+
+if module_installed linux-beta || module_installed linux-beta-mm ; then	
+	if ! [ -e /etc/init.d/alsasettings  ];  then
+	  cp  $SOURCE_CACHE/alsasettings  /etc/init.d
+	  chmod +x /etc/init.d/alsasettings
+	  rm -f /etc/rcS.d/S98alsasettings
+	  ln -s /etc/init.d/alsasettings /etc/rcS.d/S98alsasettings
+	fi
+
+	if [ ! -e /etc/rcS.d/S98alsasettings ]; then
+	  ln -s /etc/init.d/alsasettings /etc/rcS.d/S98alsasettings
+	fi
+
+	if [ ! -e /etc/rc0.d/K12alsasettings ]; then
+	  ln -s /etc/init.d/alsasettings /etc/rc0.d/K12alsasettings
+	fi
+
+	if [ ! -e /etc/rc6.d/K12alsasettings ]; then
+	  ln -s /etc/init.d/alsasettings /etc/rc6.d/K12alsasettings
+	fi
+
+	if [ ! -e /etc/rc1.d/K12alsasettings ]; then
+	  ln -s /etc/init.d/alsasettings /etc/rc1.d/K12alsasettings
+	fi
+
+	if [ ! -e /etc/rc2.d/K12alsasettings ]; then
+	  ln -s /etc/init.d/alsasettings /etc/rc2.d/K12alsasettings
+	fi
+
+	if [ ! -e /etc/rc3.d/K12alsasettings ]; then
+	  ln -s /etc/init.d/alsasettings /etc/rc3.d/K12alsasettings
+	fi
+fi



More information about the Lunar-commits mailing list