- forcing start of lo network interface
- create /etc/hosts at runtime
This commit is contained in:
Stephan Raue 2010-01-21 14:54:46 +01:00
parent 91b5b19660
commit 1774bf744d
3 changed files with 9 additions and 3 deletions

View File

@ -81,9 +81,6 @@ case "$2" in
[ "$COREBOOT" = yes ] && $SCRIPTS/install flashrom
[ "$COREBOOT" = yes ] && $SCRIPTS/install getpir
# setting up hostname
echo "127.0.0.1 mobile.openelec.tv localhost" > $INSTALL/etc/hosts
# setting
echo $TARGET_VERSION > $INSTALL/etc/release

View File

@ -22,6 +22,7 @@ ROOT_PWD="`$ROOT/$TOOLCHAIN/bin/cryptpw $ROOT_PASSWORD`"
cp $PKG_DIR/config/sysconfig $INSTALL/etc
touch $INSTALL/etc/fstab
ln -sf /var/run/resolv.conf $INSTALL/etc/resolv.conf
ln -sf /var/run/hosts $INSTALL/etc/hosts
echo $GREATING0 > $INSTALL/etc/issue
echo $GREATING1 >> $INSTALL/etc/issue

View File

@ -3,6 +3,8 @@
# read config
. /etc/sysconfig
HOSTNAME="openelec"
# mounting needed filesystems
/bin/mount -n -t ramfs none /var
@ -14,6 +16,12 @@
install -m 1777 -d /var/tmp
install -m 755 -d /var/run/sepermit # for LinuxPAM
# bring lo up, whether we have network card or not
ifconfig lo 127.0.0.1 up
# create /etc/hosts file, useful for gethostbyname(localhost)
echo -e "127.0.0.1\tlocalhost $HOSTNAME" > /var/run/hosts
# starting Xorg
[ ! "$TEXTMODE" = "yes" ] && start_xorg