From 4bde23948cac7627031c6a12ac9aeb6ce6746e42 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Wed, 19 Sep 2001 17:30:38 +0000 Subject: 2001-09-19 Chris Johns * nfs/bootp_subr.c, rtems/rtems_bootp.c, rtems/rtems_bsdnet.h, rtems/rtems_bsdnet_internal.h Added support for populating the initial "root" filesystem with information obtained via the DHCP response. --- cpukit/libnetworking/rtems/rtems_bootp.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'cpukit/libnetworking/rtems/rtems_bootp.c') diff --git a/cpukit/libnetworking/rtems/rtems_bootp.c b/cpukit/libnetworking/rtems/rtems_bootp.c index 47e3db758f..76bb79170e 100644 --- a/cpukit/libnetworking/rtems/rtems_bootp.c +++ b/cpukit/libnetworking/rtems/rtems_bootp.c @@ -14,6 +14,18 @@ void rtems_bsdnet_do_bootp (void) { rtems_bsdnet_semaphore_obtain (); - bootpc_init (); + bootpc_init (FALSE); + rtems_bsdnet_semaphore_release (); +} + +/* + * Perform a BOOTP request and update "standard" files in /etc + * with the results. + */ +void +rtems_bsdnet_do_bootp_and_rootfs (void) +{ + rtems_bsdnet_semaphore_obtain (); + bootpc_init (TRUE); rtems_bsdnet_semaphore_release (); } -- cgit v1.2.3