This file is indexed.

/usr/sbin/synce-serial-start 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
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
#!/bin/sh -e
#
# $Id: synce-serial-start.in 3078 2007-12-12 07:50:04Z mark_ellis $
#
# Script for starting a PPP connection for SynCE
#

THIS=`basename $0`

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

exit_if_not_root

get_pid

if [ "${PID}" ]; then
	echo "
${THIS} detected that a SynCE serial connection was already 
started with PID ${PID}.

To be able to start a new connection, you may use synce-serial-abort to
force the already active connection to close.
" >&2
	exit 1
fi


#
# Prevent some support requests by asking the user to remove the usepeerdns
# option from the /etc/ppp/options file.
#

if cat ${PPP_OPTIONS} | grep -v '^[ 	]*#' | grep -q usepeerdns; then
	echo "
${THIS} encountered a problem with your ${PPP_OPTIONS} file:

The 'usepeerdns' option is not compatible with SynCE.  Please edit
${PPP_OPTIONS} and remove this option before running this script again.
" >&2

	exit 1
fi

if [ $# -gt 0 ]; then
  synce_cmdline_setup "$@"  
elif [ -e ${CONFIG_FILE} ]; then
  . $CONFIG_FILE
else
  echo "
${THIS} was unable to find the file ${CONFIG_FILE}:

Please run the synce-serial-config tool to create this file before running this
script again.
" >&2
  exit 1
fi

#
# Check for ppp_async kernel module
#

if [ "`uname -s`" = "Linux" ]; then
  export PATH=/sbin:/usr/sbin:$PATH
  if ! grep -q ppp /proc/devices; then
    if ! modprobe ppp_async; then
    echo "
${THIS} was unable to load the ppp_async kernel module:

Please add this module to your Linux kernel before running this script again.
" >&2
    exit 1
    fi
  fi
fi

#
# Check for file in /dev
# 
if [ !  -c "$SYNCE_DEV" ]; then
  echo "
Error!

${THIS} could not find the serial port $SYNCE_DEV.
Is your Windows CE device really connected?
" >&2
    exit 1
fi


#
# Check for suspected firewall
#

MD5=/usr/bin/md5sum
IPTABLES=/sbin/iptables
EMPTY_IPTABLES_MD5SUM="f2384cfbed4d4fb64061368c4128d7ea"

# Do we have md5 or md5sum?

if [ -x $MD5 ]; then

	# Do we have iptables?
	if [ -x $IPTABLES ]; then
		# Is iptables working?
		if $IPTABLES -L > /dev/null; then
			IPTABLES_MD5SUM=`$IPTABLES -L -n | $MD5 | sed 's/[ 	].*//'`
			if [ "$EMPTY_IPTABLES_MD5SUM" != "$IPTABLES_MD5SUM" ]; then
				echo "
Warning!

You have firewall rules that may prevent SynCE from working properly!
" >&2
			fi
		fi		
	fi

fi

#
# See if dccm is running
#

PGREP=`which pgrep`
if [ "$PGREP" ]; then
  $PGREP dccm >/dev/null || echo "
Warning!

${THIS} cannot find the dccm process.
Without dccm your PPP connection will soon terminate!
" >&2
fi

#
# Finally start pppd
#

if $BINDIR/synce-serial-start-device; then
	echo "
${THIS} is now waiting for your device to connect
"
	exit 0
else
	echo "
${THIS} was unable to start the PPP daemon!
" >&2
	# return the error code we got from pppd
	exit
fi