Re: rc.d/sysctl fails to parse sysctl.conf

看板FB_stable作者時間12年前 (2013/04/27 13:33), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串3/6 (看更多)
On 27 February 2013 21:19, Andreas Nilsson <andrnils@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`; then I think that this is the right thing to do here. Chris _______________________________________________ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"
文章代碼(AID): #1HUsCIRr (FB_stable)
討論串 (同標題文章)
文章代碼(AID): #1HUsCIRr (FB_stable)