Bug 219723 - /etc/defaults/rc.conf DIFF/suggestion to add vlans_ example demonstrating [.-/+] translation
Summary: /etc/defaults/rc.conf DIFF/suggestion to add vlans_ example demonstrating [.-...
Status: New
Alias: None
Product: Documentation
Classification: Unclassified
Component: Books & Articles (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-doc (Nobody)
URL:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2017-06-02 08:13 UTC by Harald Schmalzbauer
Modified: 2024-09-17 07:35 UTC (History)
0 users

See Also:


Attachments
Additional example for vlans_ demonstrating punct-translation (830 bytes, patch)
2017-06-02 08:13 UTC, Harald Schmalzbauer
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Harald Schmalzbauer 2017-06-02 08:13:32 UTC
Created attachment 183146 [details]
Additional example for vlans_ demonstrating punct-translation

Hello,

topic should explain my intention.

Today, again, I tried to use 'create_args_lagg0.dmz='.
Then, again, I inspected /etc/network.subr, found the issue, corrected my config to 'create_args_lagg0_dmz=' and suddenly remembered having done the same already multiple times over the last years.
I also remembered, that when I first used the IF-rename feature in rc.conf(5), I found the examples very helpful but was missing the punct->_ translation.
Maybe that little addition could help people using their preferred naming scheme; the script does provide everything needed to do so!

-harry
Comment 1 Harald Schmalzbauer 2024-09-17 07:35:23 UTC
While it is silly to define a shell variable containing non-shell-variable characters, I still think this example addition is helpful if somebody is deep into network design and forgets basics about how the operating system will handle ;-)