**mandatory**.
If you choose not to run it, then you are responsible for setting up the
needed mount points: `/dev`, `/proc`, `/sys`, `/run/udev`
-
-Some system services expose the name of the service we are in,
-by default dhcpcd will pick `RC_SVCNAME` from the environment.
-You can override this in `CPPFLAGS+= -DRC_SVCNAME="YOUR_SVCNAME"`.
-This is important because dhcpcd will scrub the environment aside from `$PATH`
-before running hooks.
-This variable could be used to facilitate service re-entry so this chain could
-happen in a custom OS hook:
- dhcpcd service marked inactive && dhcpcd service starts
- dependant services are not started because dhcpcd is inactive (not stopped)
- dhcpcd hook tests if `$if_up = true` and `$af_waiting` is empty or unset.
- if true, mark the dhcpcd service as started and then start dependencies
- if false and the dhcpcd service was previously started, mark as inactive and
- stop any dependant services.
.Sh ENVIRONMENT
.Nm dhcpcd
will clear the environment variables aside from
-.Ev $PATH
-and
-.Ev $RC_SVCNAME .
+.Ev $PATH .
The following variables will then be set, along with any protocol supplied
ones.
.Bl -tag -width xnew_delegated_dhcp6_prefix
#include "privsep.h"
#include "script.h"
-/* Allow the OS to define another script env var name */
-#ifndef RC_SVCNAME
-#define RC_SVCNAME "RC_SVCNAME"
-#endif
-
#define DEFAULT_PATH "/usr/bin:/usr/sbin:/bin:/sbin"
static const char * const if_params[] = {