X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=blobdiff_plain;f=example-apps%2FPDD%2Fpcb-defect-detection%2Fconfigs%2Fstart.sh;fp=example-apps%2FPDD%2Fpcb-defect-detection%2Fconfigs%2Fstart.sh;h=0000000000000000000000000000000000000000;hb=3ed2c61d9d7e7916481650c41bfe5604f7db22e9;hp=2513297bc8c74e6dc5272e34dbaf48f3479a2ee8;hpb=e6d40ddb2640f434a9d7d7ed99566e5e8fa60cc1;p=ealt-edge.git diff --git a/example-apps/PDD/pcb-defect-detection/configs/start.sh b/example-apps/PDD/pcb-defect-detection/configs/start.sh deleted file mode 100644 index 2513297..0000000 --- a/example-apps/PDD/pcb-defect-detection/configs/start.sh +++ /dev/null @@ -1,47 +0,0 @@ -#!/bin/bash -# Copyright 2020 Huawei Technologies Co., Ltd. -# -# 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. - -# Validates if ip is valid -validate_ip() -{ - ip_var="$1" - # checks if variable is unset - if [ -z "$ip_var" ] ; then - echo "ip is not set" - return 1 - fi - - if ! echo "$ip_var" | grep -qE '^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.)' ; then - return 1 - fi - return 0 -} - -validate_name() { - hostname="$1" - len="${#hostname}" - if [ "${len}" -gt "64" ]; then - return 1 - fi - if ! echo "$hostname" | grep -qE '^[a-zA-Z0-9]*$|^[a-zA-Z0-9][a-zA-Z0-9_\-]*[a-zA-Z0-9]$'; then - return 1 - fi - return 0 -} - -echo "Running pcb defect detection App" -umask 0027 -cd /usr/app || exit -python -u run.py