Merge pull request #1694 from fewtarius/dev
Ensure audio preamp value exists.
This commit is contained in:
commit
2d7fb2281d
1 changed files with 5 additions and 0 deletions
|
@ -31,6 +31,11 @@ then
|
|||
fi
|
||||
|
||||
PREAMP=$(get_setting "audio.preamp" 2>/dev/null)
|
||||
if [ -z "${PREAMP}" ]
|
||||
then
|
||||
PREAMP=50
|
||||
set_setting audio.preamp ${PREAMP}
|
||||
fi
|
||||
amixer -M set Pre-Amp -- ${PREAMP}%
|
||||
|
||||
VOL=$(get_setting "audio.volume" 2>/dev/null)
|
||||
|
|
Loading…
Reference in a new issue