mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-09 22:16:58 +02:00
bin: remove dead scripts
We don't use any of this and it doesn't work or does nothing. Remove it.
This commit is contained in:
parent
1718adb22a
commit
ef3d52b7fc
@ -1 +0,0 @@
|
||||
../../platform/dev/host/cros_start_vm
|
@ -1 +0,0 @@
|
||||
../../platform/dev/host/cros_stop_vm
|
@ -1,32 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
|
||||
# Use of this source code is governed by a BSD-style license that can be
|
||||
# found in the LICENSE file.
|
||||
#
|
||||
# Simple wrapper script to build a cros_workon package incrementally.
|
||||
# You must already be cros_workon'ing the package in question.
|
||||
|
||||
# --- BEGIN COMMON.SH BOILERPLATE ---
|
||||
# Load common CrOS utilities. Inside the chroot this file is installed in
|
||||
# /usr/lib/crosutils. Outside the chroot we find it relative to the script's
|
||||
# location.
|
||||
find_common_sh() {
|
||||
local common_paths=("$(dirname "$(readlink -f "$0")")/.." /usr/lib/crosutils)
|
||||
local path
|
||||
|
||||
SCRIPT_ROOT="${common_paths[0]}"
|
||||
for path in "${common_paths[@]}"; do
|
||||
if [ -r "${path}/common.sh" ]; then
|
||||
SCRIPT_ROOT="${path}"
|
||||
break
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
find_common_sh
|
||||
. "${SCRIPT_ROOT}/common.sh" || exit 1
|
||||
# --- END COMMON.SH BOILERPLATE ---
|
||||
|
||||
die_notrace \
|
||||
"error: Please run cros_workon_make from chroot:/usr/bin/cros_workon_make"
|
63
bin/proxy-gw
63
bin/proxy-gw
@ -1,63 +0,0 @@
|
||||
#!/bin/bash
|
||||
# Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
|
||||
# Use of this source code is governed by a BSD-style license that can be
|
||||
# found in the LICENSE file.
|
||||
|
||||
# $1 = hostname, $2 = port
|
||||
#
|
||||
# Use socat to connect to the specified host and port via one of the proxies
|
||||
# defined in the environment, if the target host does not appear in the
|
||||
# no_proxy environment variable.
|
||||
|
||||
DEST_HOST="$1"
|
||||
DEST_PORT="$2"
|
||||
|
||||
# Determine whether the destination host is in the "no_proxy" list.
|
||||
use_proxy="true"
|
||||
GLOBIGNORE="*"
|
||||
for a_host in ${no_proxy//,/ } ; do
|
||||
case "${a_host}" in
|
||||
"*") # A "*" matches all hosts.
|
||||
use_proxy="false"
|
||||
break
|
||||
;;
|
||||
.*) # Items of the form ".some.fqdn" imply match-at-end.
|
||||
if [[ "${DEST_HOST}" == *"${a_host}" ]]; then
|
||||
use_proxy="false"
|
||||
break
|
||||
fi
|
||||
;;
|
||||
${DEST_HOST}) # Items of the form "some.fqdn" imply exact-match.
|
||||
use_proxy="false"
|
||||
break
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
if [[ -n "${all_proxy}" ]]; then
|
||||
PROXY="${all_proxy}"
|
||||
TYPE=SOCKS4
|
||||
PORT_ATTR=socksport
|
||||
elif [[ -n "${https_proxy}" ]]; then
|
||||
PROXY="${https_proxy}"
|
||||
TYPE=PROXY
|
||||
PORT_ATTR=proxyport
|
||||
elif [[ -n "${http_proxy}" ]]; then
|
||||
PROXY="${http_proxy}"
|
||||
TYPE=PROXY
|
||||
PORT_ATTR=proxyport
|
||||
else
|
||||
use_proxy="false"
|
||||
fi
|
||||
|
||||
if [[ "${use_proxy}" == "true" ]]; then
|
||||
PROXY="${PROXY#*://}"
|
||||
PROXY="${PROXY%%/*}"
|
||||
PROXY_HOST="${PROXY%%:*}"
|
||||
PROXY_PORT="${PROXY##*:}"
|
||||
PARMS="${PROXY_HOST}:${DEST_HOST}:${DEST_PORT},${PORT_ATTR}=${PROXY_PORT}"
|
||||
socat_args=( "${TYPE}:${PARMS}" )
|
||||
else
|
||||
socat_args=( TCP:"${DEST_HOST}":"${DEST_PORT}" )
|
||||
fi
|
||||
exec socat STDIO "${socat_args[@]}"
|
Loading…
Reference in New Issue
Block a user