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
387af1aa
Commit
387af1aa
authored
Apr 08, 2017
by
Igor Pecovnik
Browse files
syntax typo
parent
b9281d34
Changes
1
Hide whitespace changes
Inline
Side-by-side
debian-config
View file @
387af1aa
...
@@ -127,7 +127,7 @@ while true; do
...
@@ -127,7 +127,7 @@ while true; do
[[
$?
=
0
]]
&&
service hostapd stop
&&
sed
-i
"s/^DAEMON_CONF=.*/DAEMON_CONF=/"
/etc/init.d/hostapd
[[
$?
=
0
]]
&&
service hostapd stop
&&
sed
-i
"s/^DAEMON_CONF=.*/DAEMON_CONF=/"
/etc/init.d/hostapd
else
else
# change special adapters to AP mode
# change special adapters to AP mode
wlan_exceptions
(
"on"
)
wlan_exceptions
"on"
# check for WLAN interfaces
# check for WLAN interfaces
get_wlan_interface
get_wlan_interface
# display dialog
# display dialog
...
@@ -242,7 +242,7 @@ while true; do
...
@@ -242,7 +242,7 @@ while true; do
"Wireless"
)
"Wireless"
)
# disable AP mode on certain adapters
# disable AP mode on certain adapters
wlan_exceptions
(
"off"
)
wlan_exceptions
"off"
# scan for wifi modules
# scan for wifi modules
array
=(
$(
iw dev |
grep
Interface |
sed
-e
"s/
\t
Interface//"
)
)
array
=(
$(
iw dev |
grep
Interface |
sed
-e
"s/
\t
Interface//"
)
)
declared_wlans
=
0
;
declared_wlans
=
0
;
...
...
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