diff options
author | osa <osa@FreeBSD.org> | 2006-02-27 20:40:57 +0800 |
---|---|---|
committer | osa <osa@FreeBSD.org> | 2006-02-27 20:40:57 +0800 |
commit | cc09b8eb19f5c5d227f6a1c7ed7403b955ff1098 (patch) | |
tree | 1f6b60afc5f81e85da675b531e7aaf5af2841843 /comms/ltmdm/files | |
parent | 947961bfde5d6f174cc763bfdba6904a1c5dfd67 (diff) | |
download | freebsd-ports-graphics-cc09b8eb19f5c5d227f6a1c7ed7403b955ff1098.tar.gz freebsd-ports-graphics-cc09b8eb19f5c5d227f6a1c7ed7403b955ff1098.tar.zst freebsd-ports-graphics-cc09b8eb19f5c5d227f6a1c7ed7403b955ff1098.zip |
Install kernel module to ${KMODDIR}. [1]
Update port infrastructure.
Do not build package for this port, because it depends on kernel sources.
Take maintainership.
Requested by: glebius [1]
Approved by: portmgr (krion)
Diffstat (limited to 'comms/ltmdm/files')
-rw-r--r-- | comms/ltmdm/files/ltmdm.sh.in | 85 | ||||
-rw-r--r-- | comms/ltmdm/files/pkg-message.in | 17 |
2 files changed, 17 insertions, 85 deletions
diff --git a/comms/ltmdm/files/ltmdm.sh.in b/comms/ltmdm/files/ltmdm.sh.in deleted file mode 100644 index 10fb24dfb34..00000000000 --- a/comms/ltmdm/files/ltmdm.sh.in +++ /dev/null @@ -1,85 +0,0 @@ -#!/bin/sh -# $FreeBSD: /tmp/pcvs/ports/comms/ltmdm/files/Attic/ltmdm.sh.in,v 1.2 2006-02-20 20:46:49 dougb Exp $ - -# PROVIDE: ltmdm -# REQUIRE: DAEMON -# BEFORE: LOGIN -# KEYWORD: shutdown - -# Define these ltmdm_* variables in one of these files: -# /etc/rc.conf -# /etc/rc.conf.local -# /etc/rc.conf.d/ltmdm -# -# DO NOT CHANGE THESE DEFAULT VALUES HERE -# -ltmdm_enable=${ltmdm_enable-"NO"} - -. %%RC_SUBR%% - -name="ltmdm" -rcvar=`set_rcvar` -start_cmd="ltmdm_start" -stop_cmd="ltmdm_stop" -MAJOR="%%MAJOR%%" - -load_rc_config $name - -ltmdm_devfs_check() -{ - # Check devfs status, return - # 0 - if devfs present - # 1 - if devfs do not present - if mount -p | awk '{print $3}'| grep -q devfs ; then - return 0 - else - return 1 - fi -} - -ltmdm_start() -{ - echo "Enabling ltmdm." - - # Check devfs status, if devfs do not presented - # create cua* and tty* devices - if ! ltmdm_devfs_check ; 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 - - # Load ltmdm kernel module if needed - if ! kldstat -v | grep -q ltmdm\$; then - if kldload %%PREFIX%%/share/ltmdm/ltmdm.ko; then - info 'ltmdm module loaded.' - else - err 1 'ltmdm module failed to load.' - fi - fi - - # Ignore incoming calls - echo "ats0=0">/dev/cual0 -} - -ltmdm_stop() -{ - echo "Disabling ltmdm." - - # Check devfs status, if devfs do not presented - # remove cua* and tty* devices - if ! ltmdm_devfs_check ; then - rm -f /dev/cual0 /dev/cuail0 /dev/cuall0 \ - /dev/ttyl0 /dev/ttyil0 /dev/ttyll0 - fi - - # Unload ltmdm kernel module - kldstat -n ltmdm 2>/dev/null >/dev/null && kldunload ltmdm -} - -run_rc_command "$1" diff --git a/comms/ltmdm/files/pkg-message.in b/comms/ltmdm/files/pkg-message.in new file mode 100644 index 00000000000..c3d06c7cbf5 --- /dev/null +++ b/comms/ltmdm/files/pkg-message.in @@ -0,0 +1,17 @@ +******************************************************************************* +* * +* This port contains a prebuilt kernel module. Due to the ever changing * +* nature of FreeBSD it may be necessary to rebuild the module after a kernel * +* source update. To do this reinstall the port. * +* * +******************************************************************************* +To use these drivers, make sure that you have loaded the ltmdm kernel +module, by doing + + # kldload ltmdm + +or adding + + ltmdm_load="YES" + +to your /boot/loader.conf. |