diff options
author | Alin Năstac <mrness@gentoo.org> | 2005-01-22 09:43:21 +0000 |
---|---|---|
committer | Alin Năstac <mrness@gentoo.org> | 2005-01-22 09:43:21 +0000 |
commit | f1b26130bb028cbd0d8db5edf99efe06c9623e69 (patch) | |
tree | 0da08ac9f72849f43f0b55752bf5365cdc05d0fb /net-dialup/intel-536ep/files | |
parent | fix for awk locale behavior. closes #78749 (diff) | |
download | historical-f1b26130bb028cbd0d8db5edf99efe06c9623e69.tar.gz historical-f1b26130bb028cbd0d8db5edf99efe06c9623e69.tar.bz2 historical-f1b26130bb028cbd0d8db5edf99efe06c9623e69.zip |
import from #78225
Diffstat (limited to 'net-dialup/intel-536ep/files')
-rw-r--r-- | net-dialup/intel-536ep/files/digest-intel-536ep-4.69 | 1 | ||||
-rw-r--r-- | net-dialup/intel-536ep/files/intel536ep.confd | 5 | ||||
-rw-r--r-- | net-dialup/intel-536ep/files/intel536ep.initd | 37 |
3 files changed, 43 insertions, 0 deletions
diff --git a/net-dialup/intel-536ep/files/digest-intel-536ep-4.69 b/net-dialup/intel-536ep/files/digest-intel-536ep-4.69 new file mode 100644 index 000000000000..6c5386a8fa70 --- /dev/null +++ b/net-dialup/intel-536ep/files/digest-intel-536ep-4.69 @@ -0,0 +1 @@ +MD5 20e690541d3b18bbc1b2c2f690bfbc6d intel-536ep-4.69.tgz 463347 diff --git a/net-dialup/intel-536ep/files/intel536ep.confd b/net-dialup/intel-536ep/files/intel536ep.confd new file mode 100644 index 000000000000..de5f8b19c9ea --- /dev/null +++ b/net-dialup/intel-536ep/files/intel536ep.confd @@ -0,0 +1,5 @@ +#Node name of the device +DEV_NAME=536ep + +#Which group will have the permission to use this modem +DEV_GROUP=tty diff --git a/net-dialup/intel-536ep/files/intel536ep.initd b/net-dialup/intel-536ep/files/intel536ep.initd new file mode 100644 index 000000000000..53b9049fbf71 --- /dev/null +++ b/net-dialup/intel-536ep/files/intel536ep.initd @@ -0,0 +1,37 @@ +#!/sbin/runscript + +# Copyright 1999-2004 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 + +#NB: Config is in /etc/conf.d/intel536ep + +depend() { + need localmount modules +} + +start() { + local device=${DEV_NAME:-536ep} + + ebegin "Starting Intel 536EP modem" + + if ! modprobe -f Intel536 &>/dev/null ; then + eend $? + eerror "Failed to load Intel536 module" + return 1 + fi + + major=`cat /proc/devices | awk "\\$2==\"$device\" {print \\$1}"` + [ -e "/dev/$device" ] && rm -f /dev/$device + mknod -m 0660 /dev/$device c $major 1 + chgrp ${DEV_GROUP:-tty} /dev/$device + [ -e /dev/modem ] || ln -sf $device /dev/modem + + start-stop-daemon --start --quiet --background --make-pidfile --pidfile /var/run/hamregistry.pid --exec /usr/sbin/hamregistry + eend ${?} +} + +stop () { + ebegin "Stopping Intel 536EP modem" + start-stop-daemon --stop --quiet --pidfile /var/run/hamregistry.pid + eend ${?} +} |