View | Details | Raw Unified | Return to bug 13704
Collapse All | Expand All

(-)a/extras/hotplug/sound.agent (-1 / +7 lines)
Lines 18-24 ALSACTL=/usr/sbin/alsactl Link Here
18
18
19
# Fail if needed files and directories are not available,
19
# Fail if needed files and directories are not available,
20
# so that the event can be retried later.
20
# so that the event can be retried later.
21
[ -d "$STATEPATH" ] && [ -x "$AMIXER" ] && [ -x "$ALSACTL" ] || exit 1
21
## NB: split the check into relevant parts, we don't really
22
## need anything else than amixer and set_mixer_default()
23
## in LTSP chroot -- mike@altlinux.org 20071214
24
#[ -d "$STATEPATH" ] && [ -x "$AMIXER" ] && [ -x "$ALSACTL" ] || exit 1
22
25
23
mixer()
26
mixer()
24
{
27
{
Lines 28-33 mixer() Link Here
28
31
29
set_mixer_default()
32
set_mixer_default()
30
{
33
{
34
	[ -x "$AMIXER" ] || exit 1
31
	mesg "Set default mixer values for $DEVPATH ($CARDN)"
35
	mesg "Set default mixer values for $DEVPATH ($CARDN)"
32
	mixer Master 75%
36
	mixer Master 75%
33
	mixer PCM 90%
37
	mixer PCM 90%
Lines 56-61 set_mixer_default() Link Here
56
60
57
restore_mixer()
61
restore_mixer()
58
{
62
{
63
	[ -d "$STATEPATH" ] && [ -x "$ALSACTL" ] || exit 1
59
	mesg "Restore mixer values for $DEVPATH ($CARDN)"
64
	mesg "Restore mixer values for $DEVPATH ($CARDN)"
60
	ret=`$ALSACTL -F -f "$STATEPATH/asound$CARDN.state" restore $CARDN 2>&1`
65
	ret=`$ALSACTL -F -f "$STATEPATH/asound$CARDN.state" restore $CARDN 2>&1`
61
	[ "$ret" = "" ] || return 1
66
	[ "$ret" = "" ] || return 1
Lines 63-68 restore_mixer() Link Here
63
68
64
save_mixer()
69
save_mixer()
65
{
70
{
71
	[ -d "$STATEPATH" ] && [ -x "$ALSACTL" ] || exit 1
66
	rm -f "$STATEPATH/asound$CARDN.state"
72
	rm -f "$STATEPATH/asound$CARDN.state"
67
	$ALSACTL -f "$STATEPATH/asound$CARDN.state" store $CARDN
73
	$ALSACTL -f "$STATEPATH/asound$CARDN.state" store $CARDN
68
	ret=$?
74
	ret=$?
(-)a/udev.spec (-1 / +10 lines)
Lines 9-15 Link Here
9
9
10
Name: udev
10
Name: udev
11
Version: 108
11
Version: 108
12
Release: alt2
12
Release: alt2.1
13
13
14
Summary: udev - an userspace implementation of devfs
14
Summary: udev - an userspace implementation of devfs
15
Summary(ru_RU.UTF-8): udev - это вынесенная из ядра реализация devfs
15
Summary(ru_RU.UTF-8): udev - это вынесенная из ядра реализация devfs
Lines 23-28 Source0: %name-%version.tar Link Here
23
23
24
Patch0: %name-%version-%release.patch
24
Patch0: %name-%version-%release.patch
25
25
26
Packager: Sergey Vlasov <vsu@altlinux.ru>
27
26
PreReq: shadow-utils
28
PreReq: shadow-utils
27
PreReq: module-init-tools >= 3.3
29
PreReq: module-init-tools >= 3.3
28
PreReq: dmsetup
30
PreReq: dmsetup
Lines 292-297 fi Link Here
292
/lib/mkinitrd/udev
294
/lib/mkinitrd/udev
293
295
294
%changelog
296
%changelog
297
* Fri Dec 14 2007 Michael Shigorin <mike@altlinux.org> 108-alt2.1
298
- NMU: fixed premature safety checks in sound.agent
299
  (it's perfectly good to only have amixer in LTSP chroot,
300
  there's no possibility to save/restore mixer state on diskless
301
  systems anyways)
302
- added Packager:
303
295
* Wed Nov 28 2007 Sergey Vlasov <vsu@altlinux.ru> 108-alt2
304
* Wed Nov 28 2007 Sergey Vlasov <vsu@altlinux.ru> 108-alt2
296
- Applied post-108 upstream changes (0809c264e9878cdd1c61d9fb0e077972bc596ef8):
305
- Applied post-108 upstream changes (0809c264e9878cdd1c61d9fb0e077972bc596ef8):
297
  + make ACTION!="add|change" working (now "!=" is really the inverse of "==")
306
  + make ACTION!="add|change" working (now "!=" is really the inverse of "==")

Return to bug 13704