mirror of
https://github.com/fritz-smh/yi-hack
synced 2025-06-08 00:16:17 +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:
commit
d3d5d779f2
@ -275,7 +275,7 @@ ifconfig | sed "s/^/ /" >> ${LOG_FILE}
|
|||||||
|
|
||||||
### configure DNS (google one)
|
### configure DNS (google one)
|
||||||
log "Do network configuration 2/2 (DNS)"
|
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"
|
log "Done"
|
||||||
|
|
||||||
### configure time on a NTP server
|
### configure time on a NTP server
|
||||||
|
@ -6,6 +6,7 @@ ROOT_PASSWORD=1234qwer
|
|||||||
IP=192.168.1.121
|
IP=192.168.1.121
|
||||||
NETMASK=255.255.255.0
|
NETMASK=255.255.255.0
|
||||||
GATEWAY=192.168.1.254
|
GATEWAY=192.168.1.254
|
||||||
|
NAMESERVER=192.168.1.254
|
||||||
|
|
||||||
### Led color after full boot
|
### Led color after full boot
|
||||||
# The sequence will be :
|
# The sequence will be :
|
||||||
|
Loading…
x
Reference in New Issue
Block a user