mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-08-03 16:07:51 +00:00
connman: add user hosts.conf support
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
7914cfcfb7
commit
67883c74e4
4
packages/network/connman/config/hosts.conf
Normal file
4
packages/network/connman/config/hosts.conf
Normal file
@ -0,0 +1,4 @@
|
||||
# Here you can add additional hosts for usage with hosts.conf from system
|
||||
#
|
||||
# Format: <ipaddress> <hostname1> <hostname2>
|
||||
# Example: 192.168.0.3 mynas mynas.mynetwork storage
|
@ -42,6 +42,9 @@
|
||||
progress "creating /etc/hosts"
|
||||
echo -e "127.0.0.1\tlocalhost $HOSTNAME" > /etc/hosts
|
||||
|
||||
# add user defined hosts.conf entry's
|
||||
[ -f $HOME/.config/hosts.conf ] && cat $HOME/.config/hosts.conf >> /etc/hosts
|
||||
|
||||
(
|
||||
# setup Networking
|
||||
progress "setup Networking"
|
||||
|
@ -16,6 +16,7 @@ mkdir -p $INSTALL/usr/sbin
|
||||
|
||||
mkdir -p $INSTALL/usr/config
|
||||
cp $PKG_DIR/config/network.conf $INSTALL/usr/config
|
||||
cp $PKG_DIR/config/hosts.conf $INSTALL/usr/config
|
||||
|
||||
if [ "$DEVTOOLS" = yes ]; then
|
||||
mkdir -p $INSTALL/usr/bin
|
||||
|
Loading…
x
Reference in New Issue
Block a user