This repository was archived by the owner on Mar 27, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +22
-5
lines changed Expand file tree Collapse file tree 1 file changed +22
-5
lines changed Original file line number Diff line number Diff line change 11#! /bin/bash -e
22
3+ #
4+ # This file is part of arduino-connector
5+ #
6+ # Copyright (C) 2017-2020 Arduino AG (http://www.arduino.cc/)
7+ #
8+ # Licensed under the Apache License, Version 2.0 (the "License");
9+ # you may not use this file except in compliance with the License.
10+ # You may obtain a copy of the License at
11+ #
12+ # http://www.apache.org/licenses/LICENSE-2.0
13+ #
14+ # Unless required by applicable law or agreed to in writing, software
15+ # distributed under the License is distributed on an "AS IS" BASIS,
16+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17+ # See the License for the specific language governing permissions and
18+ # limitations under the License.
19+ #
20+
321has () {
422 type " $1 " > /dev/null 2>&1
523 return $?
5371echo download connector
5472echo ---------
5573download https://downloads.arduino.cc/tools/feed/arduino-connector/arduino-connector-arm
56- mv arduino-connector-arm arduino-connector
57- chmod +x arduino-connector
74+ sudo mv arduino-connector-arm /usr/bin/ arduino-connector
75+ sudo chmod +x /usr/bin/ arduino-connector
5876
5977echo install connector
6078echo ---------
6179if [ " $password " == " " ]
6280then
63- sudo -E ./ arduino-connector -register -install
81+ sudo -E arduino-connector -register -install
6482else
65- echo $password | sudo -kS -E ./ arduino-connector -register -install > arduino-connector.log 2>&1
83+ echo $password | sudo -kS -E arduino-connector -register -install > arduino-connector.log 2>&1
6684fi
6785
68-
6986echo start connector service
7087echo ---------
7188if [ " $password " == " " ]
You can’t perform that action at this time.
0 commit comments