mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-08-05 17:07:49 +00:00
busybox:
- make /etc/hosts writeable - install network.conf userconfig (disabled)
This commit is contained in:
parent
37bd558bac
commit
bf6f353d2f
@ -32,8 +32,9 @@ USER_PWD="`$ROOT/$TOOLCHAIN/bin/cryptpw $USER_PASSWORD`"
|
|||||||
# /etc/fstab is needed by...
|
# /etc/fstab is needed by...
|
||||||
touch $INSTALL/etc/fstab
|
touch $INSTALL/etc/fstab
|
||||||
|
|
||||||
# /etc/resolve.conf must be writeable
|
# /etc/resolve.conf and /etc/hosts must be writeable
|
||||||
ln -sf /var/run/resolv.conf $INSTALL/etc/resolv.conf
|
ln -sf /var/cache/hosts $INSTALL/etc/hosts
|
||||||
|
ln -sf /var/cache/resolv.conf $INSTALL/etc/resolv.conf
|
||||||
|
|
||||||
# /etc/mtab is needed by udisks etc...
|
# /etc/mtab is needed by udisks etc...
|
||||||
ln -sf /proc/mounts $INSTALL/etc/mtab
|
ln -sf /proc/mounts $INSTALL/etc/mtab
|
||||||
@ -41,9 +42,6 @@ USER_PWD="`$ROOT/$TOOLCHAIN/bin/cryptpw $USER_PASSWORD`"
|
|||||||
# create /etc/hostname
|
# create /etc/hostname
|
||||||
echo $HOSTNAME > $INSTALL/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
|
# create /etc/issue
|
||||||
echo $GREATING0 > $INSTALL/etc/issue
|
echo $GREATING0 > $INSTALL/etc/issue
|
||||||
echo $GREATING1 >> $INSTALL/etc/issue
|
echo $GREATING1 >> $INSTALL/etc/issue
|
||||||
@ -58,6 +56,9 @@ USER_PWD="`$ROOT/$TOOLCHAIN/bin/cryptpw $USER_PASSWORD`"
|
|||||||
mkdir -p $INSTALL/etc/network
|
mkdir -p $INSTALL/etc/network
|
||||||
cp $PKG_DIR/config/interfaces $INSTALL/etc/network
|
cp $PKG_DIR/config/interfaces $INSTALL/etc/network
|
||||||
|
|
||||||
|
# mkdir -p $INSTALL/usr/config
|
||||||
|
# cp $PKG_DIR/config/network.conf $INSTALL/usr/config
|
||||||
|
|
||||||
mkdir -p $INSTALL/usr/share/udhcpc
|
mkdir -p $INSTALL/usr/share/udhcpc
|
||||||
cp $PKG_DIR/scripts/udhcp.script $INSTALL/usr/share/udhcpc/default.script
|
cp $PKG_DIR/scripts/udhcp.script $INSTALL/usr/share/udhcpc/default.script
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user