connman: add user hosts.conf support

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2010-10-28 04:20:51 +02:00
parent 7914cfcfb7
commit 67883c74e4
3 changed files with 8 additions and 0 deletions

View 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

View File

@ -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"

View File

@ -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