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
a316be0e
Commit
a316be0e
authored
Apr 13, 2017
by
Igor Pecovnik
Browse files
Tiny fix
parent
c937d2d9
Changes
1
Hide whitespace changes
Inline
Side-by-side
debian-config
View file @
a316be0e
...
@@ -298,7 +298,7 @@ while true; do
...
@@ -298,7 +298,7 @@ while true; do
dialog
--title
"Hostapd service is running"
--backtitle
"
$BACKTITLE
"
--help-button
--help-label
"Cancel"
--yes-label
"Stop"
\
dialog
--title
"Hostapd service is running"
--backtitle
"
$BACKTITLE
"
--help-button
--help-label
"Cancel"
--yes-label
"Stop"
\
--no-label
"Edit"
--yesno
"
\n
Stop: stop and disable
\n\n
Edit: change basic parameters: SSID, password and channel"
9 70
--no-label
"Edit"
--yesno
"
\n
Stop: stop and disable
\n\n
Edit: change basic parameters: SSID, password and channel"
9 70
exitstatus
=
$?
;
exitstatus
=
$?
;
if
[[
$exitstatus
=
0
]]
;
then
service hostapd stop
;
sed
-i
"s/^DAEMON_CONF=.*/DAEMON_CONF=/"
/etc/init.d/hostapd
;
fi
if
[[
$exitstatus
=
0
]]
;
then
service hostapd stop
;
sed
-i
"s/^DAEMON_CONF=.*/DAEMON_CONF=/"
/etc/init.d/hostapd
;
systemctl daemon-reload
;
fi
if
[[
$exitstatus
=
1
]]
;
then
wlan_edit
;
service hostapd stop
;
sleep
1
;
service hostapd start
;
fi
if
[[
$exitstatus
=
1
]]
;
then
wlan_edit
;
service hostapd stop
;
sleep
1
;
service hostapd start
;
fi
elif
[
$declared_wlans
=
${#
array
[@]
}
]
;
then
elif
[
$declared_wlans
=
${#
array
[@]
}
]
;
then
dialog
--title
"Error"
--backtitle
"
$BACKTITLE
"
--no-collapse
\
dialog
--title
"Error"
--backtitle
"
$BACKTITLE
"
--no-collapse
\
...
...
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