[2/7] lib/system: Add udhcpc6

Message ID 20180509053705.3143-3-sam@mendozajonas.com
State New
Headers show
Series
  • IPv6 Support
Related show

Commit Message

Samuel Mendoza-Jonas May 9, 2018, 5:37 a.m.
Signed-off-by: Samuel Mendoza-Jonas <sam@mendozajonas.com>
---
 configure.ac        | 1 +
 lib/system/system.c | 1 +
 lib/system/system.h | 1 +
 3 files changed, 3 insertions(+)

Patch

diff --git a/configure.ac b/configure.ac
index 1fa0ea4..62a0b3f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -341,6 +341,7 @@  DEFINE_HOST_PROG(UMOUNT, umount, [/bin/umount])
 DEFINE_HOST_PROG(WGET, wget, [/usr/bin/wget])
 DEFINE_HOST_PROG(IP, ip, [/sbin/ip])
 DEFINE_HOST_PROG(UDHCPC, udhcpc, [/sbin/udhcpc])
+DEFINE_HOST_PROG(UDHCPC6, udhcpc6, [/usr/bin/udhcpc6])
 DEFINE_HOST_PROG(VGSCAN, vgscan, [/usr/sbin/vgscan])
 DEFINE_HOST_PROG(VGCHANGE, vgchange, [/usr/sbin/vgchange])
 DEFINE_HOST_PROG(PB_PLUGIN, pb-plugin, [/usr/sbin/pb-plugin])
diff --git a/lib/system/system.c b/lib/system/system.c
index b1121a1..d0884a3 100644
--- a/lib/system/system.c
+++ b/lib/system/system.c
@@ -28,6 +28,7 @@  const struct pb_system_apps pb_system_apps = {
 	.wget		= HOST_PROG_WGET,
 	.ip		= HOST_PROG_IP,
 	.udhcpc		= HOST_PROG_UDHCPC,
+	.udhcpc6	= HOST_PROG_UDHCPC6,
 	.vgscan		= HOST_PROG_VGSCAN,
 	.vgchange	= HOST_PROG_VGCHANGE,
 	.pb_plugin	= HOST_PROG_PB_PLUGIN,
diff --git a/lib/system/system.h b/lib/system/system.h
index d27c2cd..7219209 100644
--- a/lib/system/system.h
+++ b/lib/system/system.h
@@ -13,6 +13,7 @@  struct pb_system_apps {
 	const char *wget;
 	const char *ip;
 	const char *udhcpc;
+	const char *udhcpc6;
 	const char *vgscan;
 	const char *vgchange;
 	const char *pb_plugin;