diff core/busybox/busybox.sh @ 604:ec4819b1579a

core/busybox: add udhcp example and config
author David Demelier <markand@malikania.fr>
date Tue, 16 Jul 2019 21:22:48 +0200
parents 6078067f25d6
children 25cecc6dca48
line wrap: on
line diff
--- a/core/busybox/busybox.sh	Sun Jul 14 08:14:12 2019 +0200
+++ b/core/busybox/busybox.sh	Tue Jul 16 21:22:48 2019 +0200
@@ -22,6 +22,7 @@
 PKGSUMMARY="swiss army knife for embedded"
 PKGDOWNLOAD="https://busybox.net/downloads/$PKGNAME-$PKGVERSION.tar.bz2"
 PKGOPTIONS="CONFIG IPV6 PAM SELINUX"
+PKGPROTECT="etc/udhcpd.conf"
 
 : ${CC:=clang}
 : ${CFLAGS:=-O2}
@@ -76,6 +77,9 @@
 
 	make CC="$CC" HOSTCC="$CC" CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS"
 	install -Dm0755 busybox $DESTDIR/bin/busybox
+	install -dm0755 $DESTDIR/share/udhcp
+	install -m0644 examples/udhcp/sample.* $DESTDIR/share/udhcp
+	install -Dm0644 examples/udhcp/udhcpd.conf $DESTDIR/etc/udhcpd.conf
 	install -Dm0644 ../busybox.crond $DESTDIR/etc/rc.d/busybox.crond
 	install -Dm0644 ../busybox.klogd $DESTDIR/etc/rc.d/busybox.klogd
 	install -Dm0644 ../busybox.mdev $DESTDIR/etc/rc.d/busybox.mdev