summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichele Noberasco <s4t4n@gentoo.org>2004-11-24 16:03:03 +0000
committerMichele Noberasco <s4t4n@gentoo.org>2004-11-24 16:03:03 +0000
commit1755dc8d75cf8afc7e9561b7b3d614571207949e (patch)
tree16964c3446c1545452068682d789dc959b183fdb /app-laptop/smcinit/files
parentversion bump (#68206) (Manifest recommit) (diff)
downloadgentoo-2-1755dc8d75cf8afc7e9561b7b3d614571207949e.tar.gz
gentoo-2-1755dc8d75cf8afc7e9561b7b3d614571207949e.tar.bz2
gentoo-2-1755dc8d75cf8afc7e9561b7b3d614571207949e.zip
Initial import of app-laptop/smcinit, version 0.4, an app to initialize a SMC-IRCC based IrDA subsystem on laptops where the bios does not handle that automatically
Diffstat (limited to 'app-laptop/smcinit/files')
-rw-r--r--app-laptop/smcinit/files/digest-smcinit-0.41
-rw-r--r--app-laptop/smcinit/files/smcinit.conf7
-rwxr-xr-xapp-laptop/smcinit/files/smcinit.initscript33
3 files changed, 41 insertions, 0 deletions
diff --git a/app-laptop/smcinit/files/digest-smcinit-0.4 b/app-laptop/smcinit/files/digest-smcinit-0.4
new file mode 100644
index 000000000000..9f224b041d86
--- /dev/null
+++ b/app-laptop/smcinit/files/digest-smcinit-0.4
@@ -0,0 +1 @@
+MD5 a1f1107d6bfd3a6f75c8da268e1c809e smcinit-0.4-1.tar.gz 32343
diff --git a/app-laptop/smcinit/files/smcinit.conf b/app-laptop/smcinit/files/smcinit.conf
new file mode 100644
index 000000000000..154f2d6d2857
--- /dev/null
+++ b/app-laptop/smcinit/files/smcinit.conf
@@ -0,0 +1,7 @@
+# Which SMC-IRCC initializer should we run?
+#SMCEXE=smcinit
+#SMCEXE=tosh1800-smcinit
+#SMCEXE=tosh2450-smcinit
+
+# What kernel module the initializer should be applied to?
+#SMCMODULE=smsc-ircc2
diff --git a/app-laptop/smcinit/files/smcinit.initscript b/app-laptop/smcinit/files/smcinit.initscript
new file mode 100755
index 000000000000..694a7379cb2c
--- /dev/null
+++ b/app-laptop/smcinit/files/smcinit.initscript
@@ -0,0 +1,33 @@
+#!/sbin/runscript
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-laptop/smcinit/files/smcinit.initscript,v 1.1 2004/11/24 16:03:03 s4t4n Exp $
+
+depend() {
+ before irda
+}
+
+checkconfig() {
+ if [ -z "$SMCEXE" ] || [ -z "$SMCMODULE" ] ; then
+ eerror "You need to setup SMCEXE and SMCMODULE in /etc/conf.d/smcinit first"
+ return 1
+ fi
+}
+
+start() {
+ checkconfig || return 1
+
+ ebegin "Running ${SMCEXE}"
+ /usr/sbin/${SMCEXE}
+ eend ${?} || return 1
+
+ ebegin "Loading ${SMCMODULE}"
+ modprobe ${SMCMODULE}
+ eend ${?}
+}
+
+stop() {
+ ebegin "Unloading ${SMCMODULE}"
+ modprobe -r ${SMCMODULE}
+ eend ${?}
+}