Subject: Re: add backward compatibility to wscons rc.d script
To: None <current-users@netbsd.org>
From: Patrick Welche <prlw1@newn.cam.ac.uk>
List: current-users
Date: 04/25/2007 12:53:37
On Wed, Apr 25, 2007 at 11:17:06AM +0200, Jukka Salmi wrote:
> Hi,
> 
> revision 1.12 of src/etc/rc.d/wscons broke backward compatibility with
> existing wscons.conf(5) syntax. The attached patch teaches the wscons
> script to understand both new and old config file syntax. Additionally,
> it allows for the old "variable=value" and the new "variable" "value"
> syntax to be used for both syntaxes; this is also backward compatible
> and thus can be seen as a feature ;-)
> 
> Comments are welcome.

before:
bell.pitch=0: wsconsctl: /dev/bell.pitch=0: No such file or directory

after:
bell.pitch -> 0

Thanks Jukka!