All what I'm trying to do is to get VOL variable from /sound.cfg, depended by DEV number.
cat /sound.cfg
VOL1=20%
Systemd startup script includes:
[Service]
Environment="DEV=1"
EnvironmentFile=/sound.cfg
ExecStartPre=-/bin/bash -c "VOL=VOL${DEV} /bin/echo /usr/bin/amixer -c chan.${DEV} sset Mic ${!VOL} dev $DEV"
Unfortunately, echo shows me /usr/bin/amixer -c chan.1 sset Mic dev 1, without needed VOL1. Systemd doesn't support arrays, which would be very helpful.