Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

executable file 27 lines (21 sloc) 0.584 kb
#!/bin/bash
if [ "X$1" == "X-h" ]; then
echo "usage: vmm-install.sh [<user to run the service under>]"
exit 0
fi
if [ "X$1" == "X" ]; then
who=`whoami`
else
who=$1
fi
src_dir=`dirname $0`
cd $src_dir
LANTORRENT_HOME=`pwd`
sed -e "s/@PORT@/2893/" -e "s/@SERVICENAME@/lantorrent/" -e "s/@WHO@/$who/" -e "s^@LANTORRENT_HOME@^$LANTORRENT_HOME^" etc/lantorrent.inet.in > lantorrent
rc=$?
if [ $rc -ne 0 ]; then
echo "Failed to create the inetd entry"
exit $rc
fi
echo "Install complete. Copy $src_dir/lantorrent into /etc/xinetd.d/ and restart xinetd"
exit 0
Jump to Line
Something went wrong with that request. Please try again.