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
b0c05fb6
Commit
b0c05fb6
authored
Jun 08, 2017
by
Igor Pecovnik
Browse files
Cosmetic fix
parent
0a1d5c1e
Changes
1
Show whitespace changes
Inline
Side-by-side
debian-config
View file @
b0c05fb6
...
...
@@ -502,9 +502,9 @@ while true; do
# NAT
1
)
sed
-i
'/^#/ d'
$TEMP_CONF
apt-get
-qq
-y
--no-install-recommends
install
dnsmasq iptables
echo
-e
"
\n
allow-hotplug
$WIRELESS_ADAPTER
\n
iface
$WIRELESS_ADAPTER
\
inet static
\n
address 172.24.1.1
\n
netmask 255.255.255.0
\n
network 172.24.1.0
\n
broadcast 172.24.1.255"
>>
$TEMP_CONF
debconf-apt-progress
--
apt-get
-qq
-y
--no-install-recommends
install
dnsmasq iptables
echo
-e
"
\n
allow-hotplug
$WIRELESS_ADAPTER
\n
iface
$WIRELESS_ADAPTER
inet static "
>>
$TEMP_CONF
echo
-e
"
\n
address 172.24.1.1
\n
netmask 255.255.255.0
\n
network 172.24.1.0
\n
broadcast 172.24.1.255"
>>
$TEMP_CONF
# create new configuration
echo
"interface=
$WIRELESS_ADAPTER
# Use interface
$WIRELESS_ADAPTER
"
>
/etc/dnsmasq.conf
echo
"listen-address=172.24.1.1 # Explicitly specify the address to listen on"
>>
/etc/dnsmasq.conf
...
...
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