Hello, I tried to get my sound working, and long story short: rc.d/sysctl parses sysctl.conf wrongly if there are sysctls of the form mib=val1=val2 which is what you need for sound. For reference I needed/wanted dev.hdaa.4.nid25_config=as=1,seq=15 dev.hdaa.4.nid31_config=as=1 I believe the following patch would address the incorrect parsing: --- /etc/rc.d/sysctl.old 2013-02-27 22:00:00.000000000 +0100 +++ /etc/rc.d/sysctl 2013-02-27 22:05:24.000000000 +0100 @@ -26,7 +26,7 @@ \#*|'') ;; *) - mib=${var%=*} + mib=${var%%=*} val=${var#*=} if current_value=`${SYSCTL} -n ${mib} 2>/dev/null`; then Best regards Andreas
On 27 February 2013 21:19, Andreas Nilsson <andrnils at gmail.com> wrote:> Hello, > > I tried to get my sound working, and long story short: rc.d/sysctl parses > sysctl.conf wrongly if there are sysctls of the form > > mib=val1=val2 > > which is what you need for sound. For reference I needed/wanted > > dev.hdaa.4.nid25_config=as=1,seq=15 > dev.hdaa.4.nid31_config=as=1 > > I believe the following patch would address the incorrect parsing: > > --- /etc/rc.d/sysctl.old 2013-02-27 22:00:00.000000000 +0100 > +++ /etc/rc.d/sysctl 2013-02-27 22:05:24.000000000 +0100 > @@ -26,7 +26,7 @@ > \#*|'') > ;; > *) > - mib=${var%=*} > + mib=${var%%=*} > val=${var#*=} > > if current_value=`${SYSCTL} -n ${mib} > 2>/dev/null`; thenI think that this is the right thing to do here. Chris
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Hi, I have committed this change to 9-STABLE directly, the code gets refactored in -HEAD and solved differently. Thanks for your submission! Cheers, -----BEGIN PGP SIGNATURE----- iQEcBAEBCAAGBQJRLxC+AAoJEG80Jeu8UPuzY3kH/2MmuE6bqRC2hnznPOTt+w9m f+ojdHTQvPkx2c6S+ONv/rJuwIuJxH+4Lc6ZrMRpSnZMuq6RuGFuKG1+q+0uwLT4 bYh8YvcA5xGnomkCkCVll/BSlVQFtixsecGlW6HKUXZTc0ivUrkR1EUJP4A6ns3c 9Sg+ENL0swXRIdGWGKzDMoA3k50k4FB7EyxkKy1DIsk/XuUi7TpnU9abNo2uL0UW jBfOBlGK7F4QothboBbm1RYTrGVfZKkqW6E3G/KMA795HWhmlObZh0lF6DBMR0mP HoiHwbyuRC6tC/Y19kUiTMXvCtnsN5CADhQmn6ymvkdhrzQN1ZMbFN6UrPvAW2U=s0jR -----END PGP SIGNATURE-----