Skip to content

Commit

Permalink
base-files: move /tmp/resolv.conf.auto to /tmp/resolv.conf.d/
Browse files Browse the repository at this point in the history
Having it in a directory it more friendly for mount-bind.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
  • Loading branch information
dangowrt committed Jan 7, 2020
1 parent 414d054 commit fedc5d3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package/base-files/Makefile
Expand Up @@ -12,7 +12,7 @@ include $(INCLUDE_DIR)/version.mk
include $(INCLUDE_DIR)/feeds.mk

PKG_NAME:=base-files
PKG_RELEASE:=211
PKG_RELEASE:=212
PKG_FLAGS:=nonshared

PKG_FILE_DEPENDS:=$(PLATFORM_DIR)/ $(GENERIC_PLATFORM_DIR)/base-files/
Expand Down
5 changes: 3 additions & 2 deletions package/base-files/files/etc/init.d/boot
Expand Up @@ -31,8 +31,9 @@ boot() {
chmod 0700 /tmp/.uci
touch /var/log/wtmp
touch /var/log/lastlog
touch /tmp/resolv.conf.auto
ln -sf /tmp/resolv.conf.auto /tmp/resolv.conf
mkdir -p /tmp/resolv.conf.d
touch /tmp/resolv.conf.d/resolv.conf.auto
ln -sf /tmp/resolv.conf.d/resolv.conf.auto /tmp/resolv.conf
grep -q debugfs /proc/filesystems && /bin/mount -o noatime -t debugfs debugfs /sys/kernel/debug
[ "$FAILSAFE" = "true" ] && touch /tmp/.failsafe

Expand Down
2 changes: 1 addition & 1 deletion package/network/services/ipset-dns/files/ipset-dns.config
Expand Up @@ -11,6 +11,6 @@ config ipset-dns
#option port '53001'

# use given upstream DNS server,
# defaults to first entry in /tmp/resolv.conf.auto
# defaults to first entry in /tmp/resolv.conf.d/resolv.conf.auto
#option dns '8.8.8.8'

0 comments on commit fedc5d3

Please sign in to comment.