mirror of
https://github.com/fritz-smh/yi-hack
synced 2025-06-07 16:06:11 +00:00
add nameserver in config file
This commit is contained in:
parent
cddc53daed
commit
96a706c0a2
@ -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