Browse Source

Add configure flag for dhcpcd

Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
master
David Oberhollenzer 3 years ago
parent
commit
6ed7e164c8
  1. 3
      Makefile.am
  2. 9
      configure.ac
  3. 6
      services/Makemodule.am

3
Makefile.am

@ -40,6 +40,9 @@ install-data-local:
$(LN_S) $(TEMPLATEDIR)/tmpfsrun $(DESTDIR)$(SVCDIR)/tmpfsrun
$(LN_S) $(TEMPLATEDIR)/tmpfsvar $(DESTDIR)$(SVCDIR)/tmpfsvar
$(LN_S) $(TEMPLATEDIR)/gcrond $(DESTDIR)$(SVCDIR)/gcrond
if DHCPCLIENT
$(LN_S) $(TEMPLATEDIR)/dhcpcdmaster $(DESTDIR)$(SVCDIR)/dhcpcdmaster
endif
if SWCLOCK
$(LN_S) $(TEMPLATEDIR)/swclock $(DESTDIR)$(SVCDIR)/swclock
$(LN_S) $(TEMPLATEDIR)/swclocksave $(DESTDIR)$(SVCDIR)/swclocksave@reboot

9
configure.ac

@ -50,4 +50,13 @@ AC_ARG_ENABLE([swclock],
esac],
[AM_CONDITIONAL([SWCLOCK], [false])])
AC_ARG_ENABLE([dhcpclient],
[AS_HELP_STRING([--enable-dhcpclient], [Enable DHCP client])],
[case "${enableval}" in
yes) AM_CONDITIONAL([DHCPCLIENT], [true]) ;;
no) AM_CONDITIONAL([DHCPCLIENT], [false]) ;;
*) AC_MSG_ERROR([bad value ${enableval} for --enable-dhcpclient]) ;;
esac],
[AM_CONDITIONAL([DHCPCLIENT], [false])])
AC_OUTPUT([Makefile])

6
services/Makemodule.am

@ -4,14 +4,16 @@ init_DATA += services/sysctl services/hwclock services/sysinit
init_DATA += services/sigterm services/sync services/devfs
init_DATA += services/sysfs services/procfs services/tmpfs
init_DATA += services/vfs services/ifrename services/ifcfg
init_DATA += services/dhcpcd services/dhcpcdmaster services/unbound
init_DATA += services/dnsmasq services/ifdown services/modules
init_DATA += services/unbound services/dnsmasq services/ifdown services/modules
init_DATA += services/network services/hostapd services/nft services/sigkill
init_DATA += services/sshd services/sshd_keygen services/consolefont
init_DATA += services/nginx services/usyslogd services/klogd
init_DATA += services/gcrond services/mountusr
init_DATA += services/tmpfsrun services/tmpfsvar
if DHCPCLIENT
init_DATA += services/dhcpcd services/dhcpcdmaster
endif
if SWCLOCK
init_DATA += services/swclock services/swclocksave
endif

Loading…
Cancel
Save