1
0
Fork 0
mirror of https://github.com/pygos/init-scripts.git synced 2024-07-20 07:56:14 +02:00

Add enable flag for software pseudo RTC

Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
This commit is contained in:
David Oberhollenzer 2018-11-23 12:27:27 +01:00
parent 49fe9bd77d
commit 39fcca747f
4 changed files with 24 additions and 3 deletions

View file

@ -40,3 +40,8 @@ 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 SWCLOCK
$(LN_S) $(TEMPLATEDIR)/swclock $(DESTDIR)$(SVCDIR)/swclock
$(LN_S) $(TEMPLATEDIR)/swclocksave $(DESTDIR)$(SVCDIR)/swclocksave@reboot
$(LN_S) $(TEMPLATEDIR)/swclocksave $(DESTDIR)$(SVCDIR)/swclocksave@shutdown
endif

View file

@ -41,4 +41,13 @@ AC_CONFIG_FILES([scripts/modules_load.sh])
AC_CONFIG_FILES([crontab/swclock])
AC_ARG_ENABLE([swclock],
[AS_HELP_STRING([--enable-swclock], [Enable software pseudo RTC])],
[case "${enableval}" in
yes) AM_CONDITIONAL([SWCLOCK], [true]) ;;
no) AM_CONDITIONAL([SWCLOCK], [false]) ;;
*) AC_MSG_ERROR([bad value ${enableval} for --enable-swclock]) ;;
esac],
[AM_CONDITIONAL([SWCLOCK], [false])])
AC_OUTPUT([Makefile])

View file

@ -1,2 +1,6 @@
crondir = @GCRONDIR@
cron_DATA = crontab/swclock
cron_DATA =
if SWCLOCK
cron_DATA += crontab/swclock
endif

View file

@ -6,13 +6,16 @@ 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/network services/hostapd services/swclock
init_DATA += services/swclocksave services/nft services/sigkill
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 SWCLOCK
init_DATA += services/swclock services/swclocksave
endif
EXTRA_DIST += services/sysinit services/vfs services/agetty services/hostname
EXTRA_DIST += services/hwclock services/loopback services/klogd
EXTRA_DIST += services/sync services/sysctl services/tmpfs