Search
Project
General
Profile
Sign in
Register
Home
Projects
Help
Search
:
Replicant
All Projects
Replicant
Overview
Activity
Roadmap
Issues
Spent time
Gantt
Calendar
News
Wiki
Forums
Download (1.12 KB)
WiFi works!!! A successful experience. [ SCRIPTS PROVIDED ]
» connect.sh
connects to the network using current wpa_supplicant.conf file -
Fil Bergamo
, 11/21/2016 04:49 PM
#
# THIS IS FREE SOFTWARE
#
# Copyright 2016 Filippo "Fil" Bergamo
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
scriptDiscon
=
/data/misc/wifi/disconnect.sh
pidfile
=
/data/misc/wifi/pidfile
configfile
=
/data/misc/wifi/wpa_supplicant.conf
ifacename
=
wlan0
ipDNS1
=
193.183.98.154
ipDNS2
=
87.98.175.85
# terminate both dhcpcd and wpa_supplicant, in case there are previous connections pending...
bash
$scriptDiscon
# launch wpa_supplicant on interface wlan0
# specifing our custom configuration and the socket file
wpa_supplicant
-B
-dd
-i
$ifacename
-c
$configfile
-P
$pidfile
dhcpcd
$ifacename
setprop net.dns1
$ipDNS1
setprop net.dns2
$ipDNS2
« Previous
1
2
3
4
5
6
7
Next »
(4-4/7)
Loading...