diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2010-12-13 19:23:16 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2010-12-13 19:23:16 +0100 |
commit | 1d8f51334df12e4049a4a1c6f642bdb06e09136a (patch) | |
tree | 9301c7c9aee04ea06738ea40e0057b6efeef5e64 /package | |
parent | e1c9c0deace4fc8a79d848a2f05560ecdd7d4807 (diff) |
optimize hostname stuff, use localhost as default
Diffstat (limited to 'package')
-rw-r--r-- | package/base-files/Makefile | 16 | ||||
-rw-r--r-- | package/base-files/src/etc/hosts | 4 | ||||
-rw-r--r-- | package/base-files/src/etc/sysctl.conf | 1 |
3 files changed, 8 insertions, 13 deletions
diff --git a/package/base-files/Makefile b/package/base-files/Makefile index e0cadbf9a..9659fe685 100644 --- a/package/base-files/Makefile +++ b/package/base-files/Makefile @@ -6,7 +6,7 @@ include $(TOPDIR)/mk/rootfs.mk PKG_NAME:= base-files PKG_VERSION:= 1.0 -PKG_RELEASE:= 36 +PKG_RELEASE:= 37 PKG_SECTION:= base PKG_DESCR:= basic files and scripts @@ -43,14 +43,10 @@ endif ifneq (${ADK_PACKAGE_ZSH},) echo /bin/zsh >>${IDIR_BASE_FILES}/etc/shells endif - mkdir -p $(IDIR_BASE_FILES)/{dev,boot,root,sys,proc,tmp,mnt} mkdir -p $(IDIR_BASE_FILES)/etc/crontabs - mkdir -p $(IDIR_BASE_FILES)/etc/network/if-pre-up.d - mkdir -p $(IDIR_BASE_FILES)/etc/network/if-up.d - mkdir -p $(IDIR_BASE_FILES)/etc/network/if-down.d - mkdir -p $(IDIR_BASE_FILES)/etc/network/if-post-down.d - mkdir -p $(IDIR_BASE_FILES)/usr/lib - mkdir -p $(IDIR_BASE_FILES)/usr/bin + mkdir -p $(IDIR_BASE_FILES)/{dev,boot,root,sys,proc,tmp,mnt} + mkdir -p $(IDIR_BASE_FILES)/etc/network/{if-pre-up.d,if-up.d,if-down.d,if-post-down.d} + mkdir -p $(IDIR_BASE_FILES)/usr/{lib,bin} chmod 755 $(IDIR_BASE_FILES)/lib/mdev/init chmod 600 $(IDIR_BASE_FILES)/etc/shadow ln -sf ../proc/mounts $(IDIR_BASE_FILES)/etc/mtab @@ -65,8 +61,8 @@ endif test -z $(ADK_RUNTIME_CONSOLE_BOTH) || \ cat ./files/inittab.vga >> $(IDIR_BASE_FILES)/etc/inittab test -z $(ADK_RUNTIME_HOSTNAME) || \ - echo $(ADK_RUNTIME_HOSTNAME) > \ - $(IDIR_BASE_FILES)/etc/hostname + echo $(ADK_RUNTIME_HOSTNAME) > $(IDIR_BASE_FILES)/etc/hostname; \ + echo "127.0.0.1 $(ADK_RUNTIME_HOSTNAME)" >> $(IDIR_BASE_FILES)/etc/hosts test -z $(ADK_RUNTIME_PASSWORD) || \ $(SED) 's,\*NP\*,'"$$(${TOPDIR}/bin/tools/mkcrypt \ ${ADK_RUNTIME_PASSWORD}),g" $(IDIR_BASE_FILES)/etc/shadow diff --git a/package/base-files/src/etc/hosts b/package/base-files/src/etc/hosts index 87d837fc7..085363292 100644 --- a/package/base-files/src/etc/hosts +++ b/package/base-files/src/etc/hosts @@ -1,2 +1,2 @@ -::1 localhost -127.0.0.1 localhost +::1 localhost +127.0.0.1 localhost diff --git a/package/base-files/src/etc/sysctl.conf b/package/base-files/src/etc/sysctl.conf index f45e98632..51bccf6b0 100644 --- a/package/base-files/src/etc/sysctl.conf +++ b/package/base-files/src/etc/sysctl.conf @@ -15,4 +15,3 @@ net.ipv4.conf.default.rp_filter = 1 net.ipv4.conf.all.rp_filter = 1 # Enable SYN cookies #net.ipv4.tcp_syncookies = 1 - |