Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
freedombone
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Context Sensitive Group
freedombone
Commits
0789dc35
Commit
0789dc35
authored
7 years ago
by
Bob Mottram
Browse files
Options
Downloads
Patches
Plain Diff
wifi up commands
parent
04b7671b
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/freedombone-utils-wifi
+10
-5
10 additions, 5 deletions
src/freedombone-utils-wifi
with
10 additions
and
5 deletions
src/freedombone-utils-wifi
+
10
−
5
View file @
0789dc35
...
...
@@ -111,7 +111,8 @@ function setup_wifi_atheros {
if
[
$IFACE
]
;
then
wpa_action
${
IFACE
}
stop
wpa_cli
-i
${
IFACE
}
terminate
ifconfig
$IFACE
up
#ifconfig $IFACE up
ifup
$IFACE
fi
}
...
...
@@ -316,7 +317,8 @@ function hotspot_on {
echo
" bridge_ports
$WIFI_INTERFACE
eth0"
>>
/etc/network/interfaces
systemctl restart network-manager
ifconfig
$WIFI_INTERFACE
up
#ifconfig $WIFI_INTERFACE up
ifup
$WIFI_INTERFACE
systemctl restart hostapd
}
...
...
@@ -357,7 +359,8 @@ function wifi_wpa2_psk {
wpa_passphrase
"
$ssid
"
"
$passphrase
"
>
$WIFI_CONFIG
systemctl restart network-manager
ifconfig
${
WIFI_INTERFACE
}
up
#ifconfig ${WIFI_INTERFACE} up
ifup
$WIFI_INTERFACE
}
function
wifi_none
{
...
...
@@ -391,7 +394,8 @@ function wifi_none {
echo
'}'
>>
$WIFI_CONFIG
systemctl restart network-manager
ifconfig
${
WIFI_INTERFACE
}
up
#ifconfig ${WIFI_INTERFACE} up
ifup
$WIFI_INTERFACE
}
function
networks_from_file
{
...
...
@@ -465,7 +469,8 @@ function networks_from_file {
resolvconf
=
/var/run/NetworkManager/resolv.conf
chattr
-i
$resolvconf
systemctl restart network-manager
ifconfig
${
WIFI_INTERFACE
}
up
#ifconfig ${WIFI_INTERFACE} up
ifup
$WIFI_INTERFACE
}
function
wifi_networks_file_header
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment