mirror of
https://github.com/pygos/init-scripts.git
synced 2024-11-24 21:20:42 +01:00
Add configure flag for dhcpcd
Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
This commit is contained in:
parent
39fcca747f
commit
6ed7e164c8
3 changed files with 16 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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])
|
||||
|
|
|
@ -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…
Reference in a new issue