This file is indexed.

/usr/sbin/synce-serial-hotplug is in synce-serial 0.11-5.3.

This file is owned by root:root, with mode 0o755.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/bin/sh -e

THIS=`basename $0`

# include common stuff
. /usr/share/synce/synce-serial-common

exit_if_not_root

uname=`uname -n`

# OK, first find our TTY.
DEVTTY="`ls "$SYSFS$DEVPATH" |grep tty |head -1`"
if [ -z "$DEVTTY" ]; then
  log "Couldn't find TTY for '$DEVPATH'"
  exit 1
fi

# Set up the environment
synce_dev_setup "/dev/$DEVTTY"

if [ "$ACTION" != "add" ]; then
  exit 0
fi

# Put the important parts of the environment into the remover
( synce_dumpenv
  echo "$BINDIR/synce-serial-abort-device"
) >$REMOVER
chmod +x $REMOVER

exec $BINDIR/synce-serial-start-device