Changeset f5c6651 in rtems-libbsd for libbsd.py


Ignore:
Timestamp:
May 18, 2016, 3:49:17 AM (3 years ago)
Author:
Chris Johns <chrisj@…>
Branches:
fd86c091b97759106da7355ce1dd81ebe030e285, freebsd-9.3, f020f08430150c1656a0ad0a1de13699db9b980b
Children:
c67debb
Parents:
ac7b68c
Message:

Add support for rc.conf(5) initialisation.

Provide user support for rc.conf(5) so a user can create a suitable
/etc/rc.conf file to initialise libbsd.

This patch by default adds basic networking support:

cloned_interfaces
ifconfig_'interface'
defaultrouter
hostname

Refer to FreeBSD documentation for examples.

Users can make a single call to have /etc/rc.conf processed, or pass a
file name to a specific configuration file or a text string with line
feeds can be passed to the scripting version of the interface.

The rc.conf support is implemented in terms of directive handlers that
are called based on a regular expression. The design allows new handlers
to be added as needed.

Line concatenation is still to be implemented.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libbsd.py

    rac7b68c rf5c6651  
    6464            'rtems/rtems-bsd-get-task-priority.c',
    6565            'rtems/rtems-bsd-get-task-stack-size.c',
     66            'rtems/rtems-bsd-rc-conf-net.c',
     67            'rtems/rtems-bsd-rc-conf.c',
    6668            'rtems/rtems-bsd-shell.c',
    6769            'rtems/rtems-bsd-shell-netcmds.c',
     
    24502452    mod.addTest(mm.generator['test']('lagg01', ['test_main'], netTest = True))
    24512453    mod.addTest(mm.generator['test']('log01', ['test_main']))
     2454    mod.addTest(mm.generator['test']('rcconf01', ['test_main']))
    24522455    return mod
    24532456
Note: See TracChangeset for help on using the changeset viewer.