- Moved script to firsttime.d directory for single-time start
This commit is contained in:
Игорь Чудов 2022-11-11 14:23:55 +04:00
parent 2d24315065
commit 0600052c44
2 changed files with 21 additions and 6 deletions

View File

@ -1,8 +1,14 @@
#!/bin/sh
main() {
CARD='sysdefault:CARD=Audio'
CARD='sysdefault:CARD=Audio'
# Store the configuration
store_config() {
/usr/sbin/alsactl store
}
# Set the IO interfaces parameters
alsa_setup() {
amixer -D $CARD cset iface=MIXER,name='Speaker Volume' 0,0
amixer -D $CARD cset iface=MIXER,name='Speaker Playback Switch' off,off
amixer -D $CARD cset iface=MIXER,name='Speaker ZC Switch' off,off
@ -13,5 +19,11 @@ main() {
amixer -D $CARD cset iface=MIXER,name='Right Input Mixer R2 Switch' on
}
# Setup the audio device configuration for Aquarius machines
main() {
alsa_setup
store_config
}
main

View File

@ -1,7 +1,8 @@
%define _unpackaged_files_terminate_build 1
%define _firsttime_dir %_sysconfdir/firsttime.d
Name: aqpro-mixer
Version: 0.2
Version: 0.3
Release: alt1
Summary: Aquarius Pro P30 K41 R53 mixer settings
@ -21,13 +22,15 @@ Aquarius Pro P30 K41 R53 mixer settings
%setup -q
%install
install -D -m 0755 aqpro-mixer %buildroot%_initdir/aqpro-mixer
chmod +x %buildroot%_initdir/aqpro-mixer
install -D -m 0755 aqpro-mixer %buildroot%_firsttime_dir/aqpro-mixer
chmod +x %buildroot%_firsttime_dir/aqpro-mixer
%files
%attr(755,root,root)%_initdir/aqpro-mixer
%attr(755,root,root)%_firsttime_dir/aqpro-mixer
%changelog
* Wed Nov 02 2022 Igor Chudov <nir@altlinux.org> 0.3-alt1
- Moved script to firsttime.d directory for single-time start
* Mon Oct 24 2022 Igor Chudov <nir@altlinux.org> 0.2-alt1
- Fixed build
* Fri Oct 21 2022 Igor Chudov <nir@altlinux.org> 0.1-alt1