/usr/sbin/synce-serial-config 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 | #!/bin/sh -e
#
# $Id: synce-serial-config.in 3078 2007-12-12 07:50:04Z mark_ellis $
#
# vim: expandtab
#
# Script for configuring a PPP device for SynCE
#
THIS=`basename $0`
# include common stuff
. /usr/share/synce/synce-serial-common
exit_if_not_root
rm -f $CONFIG_FILE.new
SYSTEM=`uname -s`
help()
{
echo "
Syntax for ${THIS}:
${THIS} serial-device [local-ip-address:remote-ip_address [DNS-server-name]]
The serial-device specifies the name of your serial port device."
case ${SYSTEM} in
Linux)
echo "
These are the port names on Linux:
ttyS0 The first serial port
ttyS1 The second serial port
..."
;;
FreeBSD)
echo "
These are the port names on FreeBSD:
ttyd0 The first serial port
ttyd1 The second serial port
..."
;;
*)
echo "
${THIS} does not know the name of serial ports on ${SYSTEM} systems."
;;
esac
echo "
You can also connect via an infrared connection (IrDA). This requires
that you already have irattach running.
ircomm0 The first IrDA communication port
Please send corrections and updates to the above information to the
SynCE development mailing list: synce-devel@lists.sourceforge.net
If you do not provide the local_ip_address:remote_ip_address parameter,
${THIS} will use ${DEFAULT_IPS}.
If you want to specify these addresses yourself, you may want to read
about the same option on the man page for pppd.
"
}
if [ -z "$1" ]; then
help
exit 1
fi
case $1 in
-h|--help)
help
exit 0
;;
esac
if [ ! -d "${PPP_PEERS}" ]; then
echo "
ERROR:
${THIS} did not find the directory ${PPP_PEERS}.
Have you really installed pppd?
" >&2
exit 1
fi
synce_cmdline_setup "$@"
synce_dumpenv >$CONFIG_FILE.new
mv $CONFIG_FILE.new $CONFIG_FILE
echo "
You can now run synce-serial-start to start a serial connection.
"
exit 0
|