Browse Source

Stefan Fiedler:


			
			
				rocklinux
			
			
		
Stefan Fiedler 16 years ago
parent
commit
38e19ad145
1 changed files with 7 additions and 2 deletions
  1. +7
    -2
      package/base/sysfiles/system.init

+ 7
- 2
package/base/sysfiles/system.init

@ -51,13 +51,18 @@ dnl
fi
fi
dnl
block_split(`Setting hostname to $(cat /etc/HOSTNAME).')
if [ -f "/etc/HOSTNAME" ] ; then
hostname="$(cat /etc/HOSTNAME)"
else
hostname="localhost"
fi
block_split(`Setting hostname to $hostname.')
check(`hostname "$(cat /etc/HOSTNAME)"')
dnl
block_split(`Setting up loopback networking.')
check(`ip link set lo up')
ip addr add 127.0.0.1/8 dev lo
ip route add 127/8 dev lo
ip route add 127.0.0.0/8 dev lo
dnl
block_split(`Setting overflow UID and GID kernel parameters.')
check(`sysctl -w kernel.overflowuid=$(grep ^nobody: /etc/passwd | cut -f 3 -d:) > /dev/null')

Loading…
Cancel
Save