Bug 200130

Summary: Add ifconfig description to rc
Product: Base System Reporter: markhamb
Component: confAssignee: Fernando Apesteguía <fernape>
Status: Closed Overcome By Events    
Severity: Affects Many People CC: fernape
Priority: --- Keywords: patch
Version: 10.1-RELEASE   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
rc patches for ifconfig_IF_description none

Description markhamb 2015-05-11 15:27:24 UTC
Created attachment 156658 [details]
rc patches for ifconfig_IF_description

A patch that allows the use of ifconfig_IF_description to FreeBSD 10.
This was apparently added to 8.2 in bug Bug 156675, but seems to have regressed.
Comment 1 Fernando Apesteguía freebsd_committer freebsd_triage 2023-02-01 11:51:11 UTC
Closing since this seems to be fixed by the use of the "howmany" macro.
Comment 2 Fernando Apesteguía freebsd_committer freebsd_triage 2023-02-01 11:52:17 UTC
Sorry, bad PR.
Comment 3 Fernando Apesteguía freebsd_committer freebsd_triage 2023-02-17 16:58:41 UTC
ifconfig_(interface)_descr can be used for this:

$ grep descr /etc/rc.conf
ifconfig_wlan0_descr="my wireless interface"

<reboot>

$ ifconfig wlan0
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        description: my wireless interface
        <rest of the output omitted>