Browse Source

Add enable flag for software pseudo RTC

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

5
Makefile.am

@ -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

9
configure.ac

@ -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])

6
crontab/Makemodule.am

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

7
services/Makemodule.am

@ -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

Loading…
Cancel
Save