On Sun, Jan 05, 2020 at 10:36:24PM -0600, Matt Kunkel wrote:
> Backslash characters inside hostname.if cause it to differ from
> parameters provided to ifconfig.
I don't understand what you mean by that, can you elaborate?
> Adding '-r' to eliminate the need to
> escape '\' inside hostname.if (ssid/wpa key material).
Can you provide an example of hostname.if(5) lines that cause trouble
for you?
> If this has
> unintended consequences, I can provide a hostname.if man patch
> (currently an un-documented "feature").
Escaping is mentioned in the manual:
!command
Arbitrary shell commands can be executed using this
directive, as long as they are available in the single-user
environment (for instance, /bin or /sbin). Useful for
doing interface-specific configuration such as setting up
custom routes using route(8) or establishing tunnels using
ifconfig(8). It is worth noting that “\$if” in a command
line will be replaced by the interface name.