diff options
author | David W. Chapman Jr. <dwcjr@FreeBSD.org> | 2002-07-02 16:31:33 +0000 |
---|---|---|
committer | David W. Chapman Jr. <dwcjr@FreeBSD.org> | 2002-07-02 16:31:33 +0000 |
commit | 624c96a62d3adb3cec64665e4d3ba44e7e9011ea (patch) | |
tree | 4afc82a4b4a15f2669f1fbe581676c0a71217e36 /comms/ltmdm | |
parent | Update to 0.9.12. (diff) |
Add missing startup script
Submitted by: author
Approved by: maintainer
Notes
Notes:
svn path=/head/; revision=62351
Diffstat (limited to 'comms/ltmdm')
-rw-r--r-- | comms/ltmdm/Makefile | 2 | ||||
-rw-r--r-- | comms/ltmdm/files/ltmdm.sh | 61 |
2 files changed, 62 insertions, 1 deletions
diff --git a/comms/ltmdm/Makefile b/comms/ltmdm/Makefile index a4cdd2fff1a4..4174e6311b46 100644 --- a/comms/ltmdm/Makefile +++ b/comms/ltmdm/Makefile @@ -7,7 +7,7 @@ PORTNAME= ltmdm PORTVERSION= 1.4 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= comms MASTER_SITES= http://www.dons.net.au/~darius/ \ http://www.csociety.org/~will/ \ diff --git a/comms/ltmdm/files/ltmdm.sh b/comms/ltmdm/files/ltmdm.sh new file mode 100644 index 000000000000..02cc84822766 --- /dev/null +++ b/comms/ltmdm/files/ltmdm.sh @@ -0,0 +1,61 @@ +On Tue, 25 Jun 2002 21:16:44 -0500, "David W. Chapman Jr." wrote: +> > On Tue, 25 Jun 2002 20:07:37 -0500, "David W. Chapman Jr." wrote: +> > > +> > > > ================================================================ +> > > > ===> Installing for ltmdm-1.4_2 +> > > > cannot open /usr/ports/comms/ltmdm/files/ltmdm.sh: no such file +> +> This error is because ltmdm.sh isn't in files/ but work/ltmdm.sh +> +> The maintainer is working on a fix for this. I remember now why I +> didn't add ltmdm.sh as it is included in the source tarball. +> + +Please commit files/ltmdm.sh which I sent on 26 Jun 2002 10:32:04 +0900. + +I talked with the maintainer about this problem. + + + +ports/comms/ltmdm/files/ltmdm.sh (new) +================================================================ +#!/bin/sh + +PREFIX=%%PREFIX%% +MAJOR=%%MAJOR%% + +if mount -p | awk '{print $3}'| grep -q devfs ; then + HAVEDEVFS=YES +else + HAVEDEVFS=NO +fi + +case "$1" in + stop) + if [ "${HAVEDEVFS}" = "NO" ]; then + rm -f /dev/cual0 /dev/cuail0 /dev/cuall0 /dev/ttyl0 /dev/ttyil0 /dev/ttyll0 + fi + kldstat -n ltmdm 2>/dev/null >/dev/null && kldunload ltmdm + ;; + start|restart) + $0 stop + sleep 1 + if [ "${HAVEDEVFS}" = "NO" ]; then + umask 7 + mknod /dev/cual0 c ${MAJOR} 128 uucp:dialer + mknod /dev/cuail0 c ${MAJOR} 160 uucp:dialer + mknod /dev/cuall0 c ${MAJOR} 192 uucp:dialer + umask 77 + mknod /dev/ttyl0 c ${MAJOR} 0 root:wheel + mknod /dev/ttyil0 c ${MAJOR} 32 root:wheel + mknod /dev/ttyll0 c ${MAJOR} 64 root:wheel + fi + + kldload ${PREFIX}/share/ltmdm/ltmdm.ko + echo -n ' ltmdm' + ;; +esac +================================================================ + +-- + |