blob: 80bada0b56a98c454350c793bcc38b2f86917f2c [file] [log] [blame]
#!/bin/sh
# Copyright 2021 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.
# Start ippusb_bridge through an upstart service instead of directly calling it
# here because udev will terminate all child processes once it finishes
# processing this event. Once upstart starts the job, it will take care of
# restarting it until bridge_stop shuts it down during device removal.
logger -t bridge_start \
"Starting ippusb_bridge for $ID_VENDOR_ID:$ID_MODEL_ID" \
"on $BUSNUM:$DEVNUM ($DEVNAME)"
exec /sbin/start --quiet ippusb-bridge \
BUS="$BUSNUM" DEV="$DEVNUM" VID="$ID_VENDOR_ID" PID="$ID_MODEL_ID"