Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(354)

Unified Diff: chromeos-base/usb-server/files/usbsrv

Issue 5446002: Remove unused usb-server ebuild (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/chromiumos-overlay.git@master
Patch Set: Created 10 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chromeos-base/usb-server/files/install-usbsrv ('k') | chromeos-base/usb-server/usb-server-0.1-r2.ebuild » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos-base/usb-server/files/usbsrv
diff --git a/chromeos-base/usb-server/files/usbsrv b/chromeos-base/usb-server/files/usbsrv
deleted file mode 100644
index c4ebf4b03dc937280c8fb6ddbba7e7e080ba1bf6..0000000000000000000000000000000000000000
--- a/chromeos-base/usb-server/files/usbsrv
+++ /dev/null
@@ -1,52 +0,0 @@
-#!/bin/sh
-
-# 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.
-#
-# Wrapper for the USB-over-IP server control program from
-# www.incentivespro.com that starts the server when necessary.
-
-set -e
-
-RUNFILE=/var/run/usbsrvd
-
-SCRIPT_DIR="$(dirname "$0")"
-EXE_DIR="${SCRIPT_DIR}"
-
-# If installed in mod_for_test, this script lives in /usr/local/bin,
-# but if installed with gmerge, it lives in /usr/bin. Search
-# ../local/bin if necessary.
-if [ ! -f "${SCRIPT_DIR}/usbsrv.real" -a \
- -f "${SCRIPT_DIR}/../local/bin/usbsrv.real" ]; then
- EXE_DIR="${SCRIPT_DIR}/../local/bin"
-fi
-
-USBSRV_REAL="${EXE_DIR}/usbsrv.real"
-USBSRVD="${EXE_DIR}/usbsrvd"
-
-log() {
- echo "$@" | tee /dev/stderr | logger -t usbsrv-wrapper
-}
-
-
-if [ ! -f "${USBSRV_REAL}" ] ; then
- # We don't want to install this without explicit action
- log 'USB-over-IP script is not installed. Run "install-usbsrv" to install'
- exit 1
-fi
-
-
-if [ ! -f ${RUNFILE} ] ; then
-# For various reasons, we don't have an init script, so we start the
-# server from this wrapper if needed
- log "Starting USB-over-IP server..."
- sudo modprobe tusbd
- sudo iptables -A INPUT -p tcp --dport 32032 -j ACCEPT
- sudo ${USBSRVD}
- sleep 1 # Allow server to stabilize since we don't have a good event to wait on
- sudo touch ${RUNFILE}
- log "USB-over-IP server started"
-fi
-
-exec sudo "${USBSRV_REAL}" "$@"
« no previous file with comments | « chromeos-base/usb-server/files/install-usbsrv ('k') | chromeos-base/usb-server/usb-server-0.1-r2.ebuild » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698