Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Config
Commits
efc95499
Commit
efc95499
authored
Feb 15, 2018
by
Gauthier Provost
Browse files
Fix /etc/network/interfaces generation for IP static
parent
a1e99212
Changes
1
Hide whitespace changes
Inline
Side-by-side
debian-config-submenu
View file @
efc95499
...
...
@@ -96,7 +96,7 @@ function create_if_config() {
echo
-e
"source /etc/network/interfaces.d/*
\n
"
if
[[
"
$3
"
==
"fixed"
]]
;
then
echo
-e
"# Local loopback
\n
auto lo
\n
iface lo init loopback
\n
"
echo
-e
"# Interface
$2
\n
allow-hotplug
$2
\n
no-auto-down
$2
"
echo
-e
"# Interface
$2
\n
auto
$2
\n
allow-hotplug
$2
"
echo
-e
"iface
$2
inet static
\n\t
address
$address
\n\t
netmask
$netmask
\n\t
gateway
$gateway
\n\t
dns-nameservers 8.8.8.8"
fi
}
#
...
...
@@ -261,7 +261,7 @@ function ip_editor ()
if
[[
$?
=
0
]]
;
then
echo
-e
"# armbian-config created
\n
source /etc/network/interfaces.d/*
\n
"
>
$3
echo
-e
"# Local loopback
\n
auto lo
\n
iface lo inet loopback
\n
"
>>
$3
echo
-e
"# Interface
$2
\n
allow-hotplug
$2
\n
no-auto-down
$2
\n
iface
$2
inet static
\
echo
-e
"# Interface
$2
\n
auto
$2
\n
allow-hotplug
$2
\n
iface
$2
inet static
\
\n\t
address
$address
\n\t
netmask
$netmask
\n\t
gateway
$gateway
\n\t
dns-nameservers 8.8.8.8"
>>
$3
fi
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment