Compounds starting with zero (and with continuous indexes)
are handled as array type. It means that they are appended
when they are parsed multiple times. Fix this.
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
#
DefineMacro.SetLED {
- If.0 {
+ If.a {
Condition {
Type String
Empty "${var:-SndCtlLedModprobe}"
Define.SndCtlLedModprobe ok
}
}
- If.1 {
+ If.b {
Condition {
Type String
Empty "${var:-__Mode}"
sysw "-/class/sound/ctl-led/${var:__LED}/mode:${var:__Mode}"
]
}
- If.2 {
+ If.c {
Condition { Type AlwaysTrue }
True.FixedBootSequence [
sysw "-/class/sound/ctl-led/${var:__LED}/card${CardNumber}/${var:__Action}:${var:__CtlId}"