diff options
author | Will Andrews <will@FreeBSD.org> | 2001-03-10 20:05:09 +0000 |
---|---|---|
committer | Will Andrews <will@FreeBSD.org> | 2001-03-10 20:05:09 +0000 |
commit | 7b27d09705c2d09a78a107a04ce8d384d51536ab (patch) | |
tree | c99466fa075237cca3bdc7ed3759bcbbb7240fc7 /shells/wapsh/files | |
parent | Add sms_client 3.0.2, a simple UNIX SMS client to send messages to (diff) |
Add wapsh 1.0, a system to allow remote shell logins via a WAP
phone or web browser.
PR: 24313
Submitted by: George Reid <greid@ukug.uk.freebsd.org>
Notes
Notes:
svn path=/head/; revision=39462
Diffstat (limited to 'shells/wapsh/files')
-rw-r--r-- | shells/wapsh/files/htshd.sh | 20 | ||||
-rw-r--r-- | shells/wapsh/files/patch-htshd::htshd.c | 15 |
2 files changed, 35 insertions, 0 deletions
diff --git a/shells/wapsh/files/htshd.sh b/shells/wapsh/files/htshd.sh new file mode 100644 index 000000000000..8013945fd7a9 --- /dev/null +++ b/shells/wapsh/files/htshd.sh @@ -0,0 +1,20 @@ +#!/bin/sh + +if ! PREFIX=$(expr $0 : "\(/.*\)/etc/rc\.d/$(basename $0)\$"); then + echo "$0: Cannot determine the PREFIX" >&2 + exit 1 +fi + +case "$1" in +start) + [ -x "${PREFIX}/sbin/htshd" -a -f "${PREFIX}/etc/wapsh/htshd.conf" ] && ${PREFIX}/sbin/htshd -f ${PREFIX}/etc/wapsh/htshd.conf > /dev/null && echo -n ' htshd' + ;; +stop) + killall htshd && echo -n ' htshd' + ;; +*) + echo "Usage: `basename $0` {start|stop}" >&2 + ;; +esac + +exit 0 diff --git a/shells/wapsh/files/patch-htshd::htshd.c b/shells/wapsh/files/patch-htshd::htshd.c new file mode 100644 index 000000000000..712c7dc7821e --- /dev/null +++ b/shells/wapsh/files/patch-htshd::htshd.c @@ -0,0 +1,15 @@ +--- htshd/htshd.c.orig Sat Jan 13 17:35:54 2001 ++++ htshd/htshd.c Sat Jan 13 17:36:18 2001 +@@ -97,10 +97,10 @@ + #define SERVICE_NAME "htsh" /* Should be in /etc/services + on login and http server hosts */ + +-#define CONFIG_FILE "/etc/htshd.conf" ++#define CONFIG_FILE "%%PREFIX%%/etc/wapsh/htshd.conf" + /* Default name of startup config file */ + +-#define GLOBAL_RC_FILE "/etc/htsh_profile" ++#define GLOBAL_RC_FILE "%%PREFIX%%/etc/wapsh/htsh_profile" + /* Default name of global user + initialisation file */ + #define RCFILE ".htshrc" /* Name of user-specific initialisation file |