diff options
author | Wolfgang Wiedmeyer <wolfgit@wiedmeyer.de> | 2017-08-13 22:56:12 +0200 |
---|---|---|
committer | Wolfgang Wiedmeyer <wolfgit@wiedmeyer.de> | 2017-08-13 22:56:12 +0200 |
commit | 63d9b15a50cb9fda0ad284173d12c3ebde5562b3 (patch) | |
tree | bcf7dff2e0d865e9a5e0545ae84e8ffdfcc7eed2 | |
parent | 62773d292e7ffb9a826c9bf9bf1e1a98b9c5a58d (diff) | |
download | vendor_replicant-scripts-63d9b15a50cb9fda0ad284173d12c3ebde5562b3.tar.gz vendor_replicant-scripts-63d9b15a50cb9fda0ad284173d12c3ebde5562b3.tar.bz2 vendor_replicant-scripts-63d9b15a50cb9fda0ad284173d12c3ebde5562b3.zip |
remove unused write_config script
Signed-off-by: Wolfgang Wiedmeyer <wolfgit@wiedmeyer.de>
-rw-r--r-- | networking/wifi/device-files/setup_variables.sh | 1 | ||||
-rw-r--r-- | networking/wifi/device-files/write_config.sh | 47 |
2 files changed, 0 insertions, 48 deletions
diff --git a/networking/wifi/device-files/setup_variables.sh b/networking/wifi/device-files/setup_variables.sh index 7d05618..8c639ff 100644 --- a/networking/wifi/device-files/setup_variables.sh +++ b/networking/wifi/device-files/setup_variables.sh @@ -30,7 +30,6 @@ export pidfile="$workdir""/pidfile" export wpaconfile="$workdir""/wpa_supplicant.conf" # script paths -export scriptWriteConf="$workdir""/write_config.sh" export scriptStartWPA="$workdir""/startwpa.sh" export scriptConnect="$workdir""/connect.sh" export scriptDiscon="$workdir""/disconnect.sh" diff --git a/networking/wifi/device-files/write_config.sh b/networking/wifi/device-files/write_config.sh deleted file mode 100644 index b1a6084..0000000 --- a/networking/wifi/device-files/write_config.sh +++ /dev/null @@ -1,47 +0,0 @@ -# -# 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. - - - -# setup environment variables: -source "/data/misc/wifi/setup_variables.sh" -if [ $? -ne 0 ]; then - exit -fi - -#read SSID and password from command line: -ssid=$1 -pass=$2 - -#check if config file exists -if [ -e $wpaconfile ]; then - rm $wpaconfile -fi - -#write fixed lines: -echo -e "ctrl_interface=DIR=""$socketfile"" -update_config=1 -network={ -\tssid=\"$ssid\" -\tpsk=\"$pass\" -}" > $wpaconfile - -chmod 660 "$wpaconfile" - -echo "Network connection has been set up for "$ssid"!" - - |