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
7d232bc8
Commit
7d232bc8
authored
8 years ago
by
Bob Mottram
Browse files
Options
Downloads
Patches
Plain Diff
Enabling and disabling wifi
parent
2baffb87
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/freedombone-utils-wifi
+9
-1
9 additions, 1 deletion
src/freedombone-utils-wifi
src/freedombone-wifi
+0
-1
0 additions, 1 deletion
src/freedombone-wifi
with
9 additions
and
2 deletions
src/freedombone-utils-wifi
+
9
−
1
View file @
7d232bc8
...
...
@@ -315,6 +315,13 @@ function wifi_store_original_network_settings {
fi
}
function
wifi_original_network_settings
{
remove_config_param
"NETWORK_IS_STATIC"
if
[
-f
/etc/network/interfaces_original
]
;
then
cp
/etc/network/interfaces_original /etc/network/interfaces
fi
}
function
wifi_wpa2_psk
{
ssid
=
$1
passphrase
=
$2
...
...
@@ -539,9 +546,10 @@ function disable_wifi {
echo
'# interfaces(5) file used by ifup(8) and ifdown(8)'
>
/etc/network/interfaces
echo
'# Include files from /etc/network/interfaces.d:'
>>
/etc/network/interfaces
echo
'source-directory /etc/network/interfaces.d'
>>
/etc/network/interfaces
systemctl restart network-manager
remove_config_param
"WIFI_INTERFACE"
wpa_action
${
WIFI_INTERFACE
}
stop
wpa_cli
-i
${
WIFI_INTERFACE
}
terminate
systemctl restart network-manager
else
networks_from_file
fi
...
...
This diff is collapsed.
Click to expand it.
src/freedombone-wifi
+
0
−
1
View file @
7d232bc8
...
...
@@ -156,7 +156,6 @@ fi
if
[
${
WIFI_DISABLE
}
]
;
then
disable_wifi
${
WIFI_DISABLE
}
remove_config_param
"WIFI_INTERFACE"
exit
0
fi
...
...
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