1
0
mirror of https://github.com/pi-hole/pi-hole synced 2024-12-23 07:18:07 +00:00

Merge pull request #593 from bcambl/sysconfig_gateway

add gateway to interface configuration
This commit is contained in:
Dan Schaper 2016-08-04 00:26:07 -07:00 committed by GitHub
commit fb69bf551e

View File

@ -359,6 +359,7 @@ setStaticIPv4() {
$SUDO echo "ONBOOT=yes" >> $IFCFG_FILE
$SUDO echo "IPADDR=$IPADDR" >> $IFCFG_FILE
$SUDO echo "PREFIX=$CIDR" >> $IFCFG_FILE
$SUDO echo "GATEWAY=$IPv4gw" >> $IFCFG_FILE
$SUDO echo "USERCTL=no" >> $IFCFG_FILE
$SUDO ip addr replace dev "$piholeInterface" "$IPv4addr"
if [ -x "$(command -v nmcli)" ];then