[Pkg-alsa-devel] Bug#316909: /etc/dev.d/ is obsolete

Marco d'Itri md@Linux.IT (Marco d'Itri), 316909@bugs.debian.org
Tue, 5 Jul 2005 10:27:53 +0200


--J2SCkAp4GZ/dPZZf
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Also, a small patch to the init script is needed:

--- /etc/init.d/alsa.orig	2005-07-05 10:23:00.000000000 +0200
+++ /etc/init.d/alsa	2005-07-05 10:23:48.000000000 +0200
@@ -510,17 +509,19 @@ load_unloaded_modules()
 	return $LUM_RETURNSTATUS
 }
=20
+CARDNUM=3D${2#controlC}
+
 case "$1" in
   start)
-	start $2 || exit $?
+	start $CARDNUM || exit $?
 	;;
   stop)
-	stop $2 || exit $?
+	stop $CARDNUM || exit $?
 	;;
   restart)
 	EXITSTATUS=3D0
-	stop $2 || EXITSTATUS=3D1
-	start $2 || EXITSTATUS=3D1
+	stop $CARDNUM || EXITSTATUS=3D1
+	start $CARDNUM || EXITSTATUS=3D1
 	exit $EXITSTATUS
 	;;
   unload)

--=20
ciao,
Marco

--J2SCkAp4GZ/dPZZf
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFCykSJFGfw2OHuP7ERAu0WAJ9yj+aWhn0nDHozo/lp77aYBk9TqACgoWhL
BMBG31hUI5t406LVE5VQYIs=
=OqcS
-----END PGP SIGNATURE-----

--J2SCkAp4GZ/dPZZf--