mirror of
https://github.com/openwrt/openwrt.git
synced 2025-02-02 01:08:05 +00:00
busybox: preserve crontabs
/etc/syslog.conf is used by sysklogd, and /etc/crontabs is used by crond, both features of busybox. Given this, ownership for these files should be bound to busybox, especially if one day there's a way to do an in-place opkg update of busybox. There's also the busybox provided syslogd which uses this file if CONFIG_BUSYBOX_FEATURE_SYSLOGD_CFG is set. Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com> Signed-off-by: maurerr <mariusd84@gmail.com>
This commit is contained in:
parent
431435367a
commit
3a7feb50c4
@ -47,7 +47,6 @@ define Package/base-files/conffiles
|
|||||||
/etc/config/
|
/etc/config/
|
||||||
/etc/config/network
|
/etc/config/network
|
||||||
/etc/config/system
|
/etc/config/system
|
||||||
/etc/crontabs/
|
|
||||||
/etc/dropbear/
|
/etc/dropbear/
|
||||||
/etc/ethers
|
/etc/ethers
|
||||||
/etc/group
|
/etc/group
|
||||||
|
@ -73,13 +73,24 @@ define Package/busybox/config
|
|||||||
source "$(SOURCE)/Config.in"
|
source "$(SOURCE)/Config.in"
|
||||||
endef
|
endef
|
||||||
|
|
||||||
ifdef CONFIG_BUSYBOX_CONFIG_FEATURE_SYSLOG
|
ifneq ($(CONFIG_BUSYBOX_$(BUSYBOX_SYM)_FEATURE_SYSLOG)$(CONFIG_BUSYBOX_$(BUSYBOX_SYM)_FEATURE_SYSLOGD_CFG),)
|
||||||
define Package/busybox/conffiles
|
define Package/busybox/conffiles/syslog
|
||||||
/etc/syslog.conf
|
/etc/syslog.conf
|
||||||
endef
|
endef
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifneq ($(CONFIG_BUSYBOX_$(BUSYBOX_SYM)_CROND),)
|
||||||
|
define Package/busybox/conffiles/crond
|
||||||
|
/etc/crontabs/
|
||||||
|
endef
|
||||||
|
endif
|
||||||
|
|
||||||
|
define Package/busybox/conffiles
|
||||||
|
$(Package/busybox/conffiles/syslog)
|
||||||
|
$(Package/busybox/conffiles/crond)
|
||||||
|
endef
|
||||||
|
|
||||||
Package/busybox-selinux/conffiles = $(Package/busybox/conffiles)
|
Package/busybox-selinux/conffiles = $(Package/busybox/conffiles)
|
||||||
endif
|
|
||||||
|
|
||||||
ifndef CONFIG_USE_MUSL
|
ifndef CONFIG_USE_MUSL
|
||||||
LDLIBS:=m crypt
|
LDLIBS:=m crypt
|
||||||
@ -129,8 +140,12 @@ define Package/busybox/install
|
|||||||
$(INSTALL_DIR) $(1)/etc/init.d
|
$(INSTALL_DIR) $(1)/etc/init.d
|
||||||
$(INSTALL_DIR) $(1)/usr/sbin
|
$(INSTALL_DIR) $(1)/usr/sbin
|
||||||
$(CP) $(PKG_INSTALL_DIR)/* $(1)/
|
$(CP) $(PKG_INSTALL_DIR)/* $(1)/
|
||||||
|
ifneq ($(CONFIG_BUSYBOX_$(BUSYBOX_SYM)_FEATURE_SYSLOG)$(CONFIG_BUSYBOX_$(BUSYBOX_SYM)_FEATURE_SYSLOGD_CFG),)
|
||||||
|
touch $(1)/etc/syslog.conf
|
||||||
|
endif
|
||||||
ifneq ($(CONFIG_BUSYBOX_$(BUSYBOX_SYM)_CROND),)
|
ifneq ($(CONFIG_BUSYBOX_$(BUSYBOX_SYM)_CROND),)
|
||||||
$(INSTALL_BIN) ./files/cron $(1)/etc/init.d/cron
|
$(INSTALL_BIN) ./files/cron $(1)/etc/init.d/cron
|
||||||
|
$(INSTALL_DIR) $(1)/etc/crontabs
|
||||||
endif
|
endif
|
||||||
ifneq ($(CONFIG_BUSYBOX_$(BUSYBOX_SYM)_NTPD),)
|
ifneq ($(CONFIG_BUSYBOX_$(BUSYBOX_SYM)_NTPD),)
|
||||||
$(INSTALL_BIN) ./files/sysntpd $(1)/etc/init.d/sysntpd
|
$(INSTALL_BIN) ./files/sysntpd $(1)/etc/init.d/sysntpd
|
||||||
|
Loading…
x
Reference in New Issue
Block a user