#
-# Copyright (C) 2007-2013 OpenWrt.org
+# Copyright (C) 2007-2014 OpenWrt.org
# Copyright (C) 2010 Vertical Communications
#
# This is free software, licensed under the GNU General Public License v2.
#
include $(TOPDIR)/rules.mk
-include $(INCLUDE_DIR)/kernel.mk
include $(INCLUDE_DIR)/version.mk
+include $(INCLUDE_DIR)/kernel.mk
PKG_NAME:=base-files
-PKG_RELEASE:=139
+PKG_RELEASE:=157
PKG_FILE_DEPENDS:=$(PLATFORM_DIR)/ $(GENERIC_PLATFORM_DIR)/base-files/
PKG_BUILD_DEPENDS:=opkg/host
-PKG_CONFIG_DEPENDS:=CONFIG_PROCD_INIT
+PKG_LICENSE:=GPL-2.0
include $(INCLUDE_DIR)/package.mk
define Package/base-files
SECTION:=base
CATEGORY:=Base system
- DEPENDS:=+netifd +libc +procd
+ DEPENDS:=+netifd +libc +procd +jsonfilter
TITLE:=Base filesystem for OpenWrt
URL:=http://openwrt.org/
VERSION:=$(PKG_RELEASE)-$(REVISION)
This package contains a base filesystem and system scripts for OpenWrt.
endef
-define Package/base-files/config
-config PROCD_INIT
- bool "Use procd as the init process"
- default n
-endef
-
-ifeq ($(CONFIG_PROCD_INIT),)
-define InstallOldFiles
- $(CP) ./files.old/* $(1)/
-endef
-endif
-
ifneq ($(CONFIG_PREINITOPT),)
define ImageConfigOptions
mkdir -p $(1)/lib/preinit
if [ -d $(GENERIC_PLATFORM_DIR)/base-files/. ]; then \
$(CP) $(GENERIC_PLATFORM_DIR)/base-files/* $(1)/; \
fi
- $(call InstallOldFiles,$(1))
if [ -d $(PLATFORM_DIR)/base-files/. ]; then \
$(CP) $(PLATFORM_DIR)/base-files/* $(1)/; \
fi
$(VERSION_SED) \
$(1)/etc/banner \
- $(1)/etc/openwrt_version \
- $(1)/etc/openwrt_release
+ $(1)/etc/openwrt_version
+
+ $(VERSION_SED_SCRIPT) \
+ $(1)/etc/openwrt_release \
+ $(1)/etc/device_info
mkdir -p $(1)/CONTROL
mkdir -p $(1)/dev
mkdir -p $(1)/sys
mkdir -p $(1)/www
mkdir -p $(1)/root
- ln -sf /proc/mounts $(1)/etc/mtab
+ $(LN) /proc/mounts $(1)/etc/mtab
rm -f $(1)/var
- ln -sf /tmp $(1)/var
+ $(LN) /tmp $(1)/var
mkdir -p $(1)/etc
- ln -sf /tmp/resolv.conf /tmp/fstab /tmp/TZ $(1)/etc/
+ $(LN) /tmp/resolv.conf /tmp/fstab /tmp/TZ $(1)/etc/
chmod 0600 $(1)/etc/shadow
chmod 1777 $(1)/tmp