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
904d8d60
Commit
904d8d60
authored
8 years ago
by
Bob Mottram
Browse files
Options
Downloads
Patches
Plain Diff
Configurable wifi interface
parent
0b8fc22d
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/freedombone-app-dokuwiki
+1
-1
1 addition, 1 deletion
src/freedombone-app-dokuwiki
src/freedombone-wifi
+12
-12
12 additions, 12 deletions
src/freedombone-wifi
with
13 additions
and
13 deletions
src/freedombone-app-dokuwiki
+
1
−
1
View file @
904d8d60
...
...
@@ -558,7 +558,7 @@ function install_dokuwiki {
echo
''
>>
/home/
$MY_USERNAME
/README
echo
''
>>
/home/
$MY_USERNAME
/README
echo
$'Dokuwiki'
>>
/home/
$MY_USERNAME
/README
echo
'
===='
>>
/home/
$MY_USERNAME
/README
echo
'====
===='
>>
/home/
$MY_USERNAME
/README
echo
$"Dokuwiki onion domain:
${
DOKUWIKI_ONION_HOSTNAME
}
"
>>
/home/
$MY_USERNAME
/README
echo
$"Dokuwiki username:
$MY_USERNAME
"
>>
/home/
$MY_USERNAME
/README
echo
$"Dokuwiki password:
$DOKUWIKI_ADMIN_PASSWORD
"
>>
/home/
$MY_USERNAME
/README
...
...
This diff is collapsed.
Click to expand it.
src/freedombone-wifi
+
12
−
12
View file @
904d8d60
...
...
@@ -71,7 +71,7 @@ function hotspot_off {
fi
systemctl restart network-manager
ifdown
wlan0
ifdown
$WIFI_INTERFACE
}
function
hotspot_on
{
...
...
@@ -138,7 +138,7 @@ function hotspot_on {
echo
" bridge_ports
$WIFI_INTERFACE
eth0"
>>
/etc/network/interfaces
systemctl restart network-manager
ifup
wlan0
ifup
$WIFI_INTERFACE
systemctl restart hostapd
}
...
...
@@ -159,8 +159,8 @@ function wifi_wpa2_psk {
echo
'allow-hotplug eth0'
>>
/etc/network/interfaces
echo
'iface eth0 inet dhcp'
>>
/etc/network/interfaces
echo
''
>>
/etc/network/interfaces
echo
'
allow-hotplug
wlan0'
>>
/etc/network/interfaces
echo
'
iface
wlan0
inet manual
'
>>
/etc/network/interfaces
echo
"
allow-hotplug
${
WIFI_INTERFACE
}
"
>>
/etc/network/interfaces
echo
"
iface
${
WIFI_INTERFACE
}
inet manual
"
>>
/etc/network/interfaces
echo
" wpa-roam
$WIFI_CONFIG
"
>>
/etc/network/interfaces
echo
''
>>
/etc/network/interfaces
echo
'iface default inet dhcp'
>>
/etc/network/interfaces
...
...
@@ -168,7 +168,7 @@ function wifi_wpa2_psk {
wpa_passphrase
"
$ssid
"
"
$passphrase
"
>
$WIFI_CONFIG
systemctl restart network-manager
ifup
wlan0
ifup
${
WIFI_INTERFACE
}
}
function
wifi_none
{
...
...
@@ -187,8 +187,8 @@ function wifi_none {
echo
'allow-hotplug eth0'
>>
/etc/network/interfaces
echo
'iface eth0 inet dhcp'
>>
/etc/network/interfaces
echo
''
>>
/etc/network/interfaces
echo
'
allow-hotplug
wlan0'
>>
/etc/network/interfaces
echo
'
iface
wlan0
inet manual
'
>>
/etc/network/interfaces
echo
"
allow-hotplug
${
WIFI_INTERFACE
}
"
>>
/etc/network/interfaces
echo
"
iface
${
WIFI_INTERFACE
}
inet manual
"
>>
/etc/network/interfaces
echo
" wpa-roam
$WIFI_CONFIG
"
>>
/etc/network/interfaces
echo
''
>>
/etc/network/interfaces
echo
'iface default inet dhcp'
>>
/etc/network/interfaces
...
...
@@ -199,7 +199,7 @@ function wifi_none {
echo
'}'
>>
$WIFI_CONFIG
systemctl restart network-manager
ifup
wlan0
ifup
${
WIFI_INTERFACE
}
}
function
networks_from_file
{
...
...
@@ -220,8 +220,8 @@ function networks_from_file {
echo
'allow-hotplug eth0'
>>
/etc/network/interfaces
echo
'iface eth0 inet dhcp'
>>
/etc/network/interfaces
echo
''
>>
/etc/network/interfaces
echo
'
allow-hotplug
wlan0'
>>
/etc/network/interfaces
echo
'
iface
wlan0
inet manual
'
>>
/etc/network/interfaces
echo
"
allow-hotplug
${
WIFI_INTERFACE
}
"
>>
/etc/network/interfaces
echo
"
iface
${
WIFI_INTERFACE
}
inet manual
"
>>
/etc/network/interfaces
echo
" wpa-roam
$WIFI_CONFIG
"
>>
/etc/network/interfaces
echo
''
>>
/etc/network/interfaces
echo
'iface default inet dhcp'
>>
/etc/network/interfaces
...
...
@@ -263,7 +263,7 @@ function networks_from_file {
done
<
$WIFI_NETWORKS_FILE
systemctl restart network-manager
ifup
wlan0
ifup
${
WIFI_INTERFACE
}
}
function
create_networks_interactive
{
...
...
@@ -348,7 +348,7 @@ function disable_wifi {
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
ifdown
wlan0
ifdown
${
WIFI_INTERFACE
}
else
networks_from_file
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