1
0
mirror of https://github.com/fritz-smh/yi-hack synced 2025-06-07 16:06:11 +00:00

Merge pull request #48 from alpha14/master

Add the possibility to specify a dns server in the config file
This commit is contained in:
Fritz SMH 2016-10-04 21:31:48 +02:00 committed by GitHub
commit d3d5d779f2
2 changed files with 2 additions and 1 deletions

View File

@ -275,7 +275,7 @@ ifconfig | sed "s/^/ /" >> ${LOG_FILE}
### configure DNS (google one)
log "Do network configuration 2/2 (DNS)"
echo "nameserver 8.8.8.8" > /etc/resolv.conf
echo "nameserver $(get_config NAMESERVER)" > /etc/resolv.conf
log "Done"
### configure time on a NTP server

View File

@ -6,6 +6,7 @@ ROOT_PASSWORD=1234qwer
IP=192.168.1.121
NETMASK=255.255.255.0
GATEWAY=192.168.1.254
NAMESERVER=192.168.1.254
### Led color after full boot
# The sequence will be :