BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mangoh-drivers
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
mangoh-drivers
Commits
da967340
Commit
da967340
authored
Mar 14, 2018
by
David Clark
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Code formating
parent
cdfbae33
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
cfg_gateway.sh
scripts/cfg_gateway.sh
+1
-2
No files found.
scripts/cfg_gateway.sh
View file @
da967340
...
...
@@ -280,11 +280,11 @@ if [ "${rsp}" = 'Y' ]; then
echo
"Reconfiguring the DHCP server..."
/etc/init.d/dnsmasq stop
||
echo
"UNABLE TO STOP THE DHCP server"
### Configure the IP addresses range for DHCP (dnsmasq)
DHCP_CFG_FILE
=
"
$DHCP_CFG_FILE_PREFIX
.
$ITF_LAN
.
$DHCP_CFG_FILE_SUFFIX
"
test
-L
"/etc/dnsmasq.d/
$DHCP_CFG_FILE
"
&&
rm
-f
"/etc/dnsmasq.d/
$DHCP_CFG_FILE
"
test
-f
"/tmp/
$DHCP_CFG_FILE
"
&&
rm
-f
"/tmp/
$DHCP_CFG_FILE
"
#test -L "/etc/dnsmasq.d/$DHCP_CFG_FILE" || ln -s "/tmp/$DHCP_CFG_FILE" "/etc/dnsmasq.d/$DHCP_CFG_FILE"
echo
"Generating the configuration file '/tmp/
$DHCP_CFG_FILE
' for the DHCP server..."
echo
-ne
"log-dhcp
\n
log-queries
\n
"
\
...
...
@@ -294,7 +294,6 @@ if [ "${rsp}" = 'Y' ]; then
"dhcp-option=
$ITF_LAN
,6,
$LAN_IP
\n
"
\
"dhcp-range=
$DHCP_IP_START
,
$DHCP_IP_END
,24h
\n
"
\
"server=8.8.8.8
\n
"
>>
"/tmp/
$DHCP_CFG_FILE
"
ln
-s
"/tmp/
$DHCP_CFG_FILE
"
"/etc/dnsmasq.d/
$DHCP_CFG_FILE
"
### Start the DHCP server
...
...
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