Browse Source

- move some PERSISTENT_VAR_PARTITION links directly to the targets

master
vanhofen 4 years ago
parent
commit
d3595ada5b
  1. 4
      make/target-rootfs.mk
  2. 4
      make/target-tools.mk

4
make/target-rootfs.mk

@ -47,12 +47,10 @@ symbolic-links: | $(TARGET_DIR)
ln -sf /proc/mounts mtab
ifeq ($(PERSISTENT_VAR_PARTITION),yes)
$(CD) $(TARGET_sysconfdir); \
ln -sf /var/etc/exports exports; \
ln -sf /var/etc/hostname hostname; \
ln -sf /var/etc/localtime localtime; \
ln -sf /var/etc/passwd passwd; \
ln -sf /var/etc/resolv.conf resolv.conf; \
ln -sf /var/etc/wpa_supplicant.conf wpa_supplicant.conf
ln -sf /var/etc/resolv.conf resolv.conf
$(CD) $(TARGET_sysconfdir)/network; \
ln -sf /var/etc/network/interfaces interfaces
endif

4
make/target-tools.mk

@ -1640,6 +1640,9 @@ wpa_supplicant: $(WPA_SUPPLICANT_DEPS) $(DL_DIR)/$(WPA_SUPPLICANT_SOURCE) | $(TA
$(MAKE) install DESTDIR=$(TARGET_DIR) BINDIR=$(sbindir)
$(INSTALL_EXEC) -D $(PKG_FILES_DIR)/pre-wlan0.sh $(TARGET_sysconfdir)/network/pre-wlan0.sh
$(INSTALL_EXEC) -D $(PKG_FILES_DIR)/post-wlan0.sh $(TARGET_sysconfdir)/network/post-wlan0.sh
ifeq ($(PERSISTENT_VAR_PARTITION),yes)
ln -sf /var/etc/wpa_supplicant.conf $(TARGET_sysconfdir)/wpa_supplicant.conf
endif
$(REMOVE)/$(PKG_DIR)
$(TOUCH)
@ -1723,6 +1726,7 @@ nfs-utils: $(NFS_UTILS_DEPS) $(DL_DIR)/$(NFS_UTILS_SOURCE) | $(TARGET_DIR)
rm -f $(addprefix $(TARGET_sbindir)/,mountstats nfsiostat)
ifeq ($(PERSISTENT_VAR_PARTITION),yes)
$(INSTALL_DATA) -D $(PKG_FILES_DIR)/exports-var $(TARGET_localstatedir)/etc/exports
ln -sf /var/etc/exports $(TARGET_sysconfdir)/exports
else
$(INSTALL_DATA) -D $(PKG_FILES_DIR)/exports $(TARGET_sysconfdir)/exports
endif

Loading…
Cancel
Save