- cleanup
- create /etc/hosts at install time
This commit is contained in:
Stephan Raue 2010-03-26 11:08:55 +01:00
parent bd12db1058
commit 84ba822f07
2 changed files with 9 additions and 12 deletions

View File

@ -3,10 +3,6 @@
#
# runlevels: openelec, textmode
HOSTNAME=`cat /etc/hostname`
export $HOSTNAME
# bring lo up, whether we have network card or not
progress "starting Loopback Network interface"
ifconfig lo 127.0.0.1 up
@ -14,6 +10,3 @@ export $HOSTNAME
# setup hostname
progress "Setup hostname"
echo $HOSTNAME > /proc/sys/kernel/hostname
# create /etc/hosts file, useful for gethostbyname(localhost)
echo -e "127.0.0.1\tlocalhost $HOSTNAME" > /var/run/hosts

View File

@ -22,14 +22,21 @@ USER_PWD="`$ROOT/$TOOLCHAIN/bin/cryptpw $USER_PASSWORD`"
mkdir -p $INSTALL/bin
ln -sf /bin/sh $INSTALL/bin/bash
mkdir -p $INSTALL/sbin
cp $PKG_DIR/scripts/init $INSTALL/sbin/
mkdir -p $INSTALL/etc
cp $PKG_DIR/config/profile $INSTALL/etc
touch $INSTALL/etc/fstab
ln -sf /var/run/resolv.conf $INSTALL/etc/resolv.conf
ln -sf /var/run/hosts $INSTALL/etc/hosts
# create /etc/hostname
echo $HOSTNAME > $INSTALL/etc/hostname
# create /etc/hosts file, useful for gethostbyname(localhost)
echo -e "127.0.0.1\tlocalhost $HOSTNAME" > $INSTALL/etc/hosts
# create /etc/issue
echo $GREATING0 > $INSTALL/etc/issue
echo $GREATING1 >> $INSTALL/etc/issue
echo $GREATING2 >> $INSTALL/etc/issue
@ -39,10 +46,7 @@ USER_PWD="`$ROOT/$TOOLCHAIN/bin/cryptpw $USER_PASSWORD`"
mkdir -p $INSTALL/usr/share/udhcpc
cp $PKG_DIR/scripts/udhcp.script $INSTALL/usr/share/udhcpc/default.script
mkdir -p $INSTALL/sbin
cp $PKG_DIR/scripts/init $INSTALL/sbin/
# acpid specific
# acpid specific
mkdir -p $INSTALL/etc/acpi/PWRF
cp $PKG_DIR/scripts/acpi_powerbtn $INSTALL/etc/acpi/PWRF/00000080