mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
busybox:
- forcing start of lo network interface - create /etc/hosts at runtime
This commit is contained in:
parent
91b5b19660
commit
1774bf744d
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user