From 44d7a718762bf4c764708de6938c36d3d7a5be80 Mon Sep 17 00:00:00 2001 From: nico Date: Tue, 24 May 2005 01:55:36 +0000 Subject: Add frickin package git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@1042 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- package/frickin/files/frickin.default | 16 ++++++++++++++++ package/frickin/files/frickin.init | 16 ++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 package/frickin/files/frickin.default create mode 100644 package/frickin/files/frickin.init (limited to 'package/frickin/files') diff --git a/package/frickin/files/frickin.default b/package/frickin/files/frickin.default new file mode 100644 index 000000000..9f55d5bad --- /dev/null +++ b/package/frickin/files/frickin.default @@ -0,0 +1,16 @@ +# ip address of the server the proxy should connect to +TARGET_IP=192.168.1.2 + +# ip address the proxy should listen to for incoming connections +#LISTEN_IP=192.168.1.1 + +# maximum number of simultaneous connections +#PROXY_CONN_MAX=20 + +# user the proxy should run as +#PROXY_USER=root + +[ -n "$TARGET_IP" ] && OPTIONS="$OPTIONS -s $TARGET_IP" +[ -n "$LISTEN_IP" ] && OPTIONS="$OPTIONS -l $LISTEN_IP" +[ -n "$PROXY_CONN_MAX" ] && OPTIONS="$OPTIONS -c $PROXY_CONN_MAX" +[ -n "$PROXY_USER" ] && OPTIONS="$OPTIONS -u $PROXY_USER" diff --git a/package/frickin/files/frickin.init b/package/frickin/files/frickin.init new file mode 100644 index 000000000..0a80d417d --- /dev/null +++ b/package/frickin/files/frickin.init @@ -0,0 +1,16 @@ +#!/bin/sh + +BIN=frickin +DEFAULT=/etc/default/$BIN +[ -f $DEFAULT ] && . $DEFAULT + +case $1 in + start) + $BIN $OPTIONS + ;; + *) + echo "usage: $0 (start)" + exit 1 +esac + +exit $? -- cgit v1.2.3