mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-21 20:38:45 +00:00
Add missing startup script
Submitted by: author Approved by: maintainer
This commit is contained in:
parent
662ab1af1b
commit
624c96a62d
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=62351
@ -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/ \
|
||||
|
61
comms/ltmdm/files/ltmdm.sh
Normal file
61
comms/ltmdm/files/ltmdm.sh
Normal file
@ -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
|
||||
================================================================
|
||||
|
||||
--
|
||||
|
Loading…
Reference in New Issue
Block a user