cosmetic fix
This commit is contained in:
10
install.py
10
install.py
@ -28,9 +28,9 @@ COMMENT = "; please refer to README.md for help"
|
||||
|
||||
CONFIG_TEMPLATE = """[NETWORK]
|
||||
%s
|
||||
enp1s0=192.168.127.1/24
|
||||
enp2s0=192.168.2.1/24
|
||||
enp3s0=192.168.3.1/24
|
||||
enp1s0=192.168.127.254
|
||||
enp2s0=192.168.2.2
|
||||
enp3s0=192.168.3.3
|
||||
enp4s0=dhcp
|
||||
|
||||
[ROUTER]
|
||||
@ -198,9 +198,9 @@ def create_if(name, cfg, mac, dhcp_server_cfg):
|
||||
IPV4_FAILURE_FATAL='yes',
|
||||
IPV6INIT='no')
|
||||
if cfg == 'off':
|
||||
result['ONBOOT']='no'
|
||||
result['ONBOOT'] = 'no'
|
||||
elif cfg.startswith('wan') or cfg == 'dhcp':
|
||||
result['BOOTPROTO']='dhcp'
|
||||
result['BOOTPROTO'] = 'dhcp'
|
||||
# default: all <= 192.0.0.0
|
||||
# others have to be added explicitly
|
||||
dhcp_server_cfg.append(('0.0.0.0/128.0.0.0', []))
|
||||
|
Reference in New Issue
Block a user