]> git.pld-linux.org Git - packages/em8300.git/commitdiff
scripts to load em8300 modules and microcode;
authorrrw <rrw@hell.pl>
Thu, 11 Jul 2002 00:28:31 +0000 (00:28 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    em8300.init -> 1.1
    em8300.sysconf -> 1.1

em8300.init [new file with mode: 0644]
em8300.sysconf [new file with mode: 0644]

diff --git a/em8300.init b/em8300.init
new file mode 100644 (file)
index 0000000..cfb44e2
--- /dev/null
@@ -0,0 +1,40 @@
+#!/bin/sh
+#
+# chkconfig: 2345 11 89
+# description: loads em8300 modules and uploads microcode
+
+if [ ! -f /etc/sysconfig/em8300 ] ; then
+   exit 0
+fi
+
+# Source function library.
+. /etc/rc.d/init.d/functions
+
+. /etc/sysconfig/em8300
+
+load_module () { run_cmd "Loading module $1" modprobe "$*"; }
+
+# See how we were called.
+case "$1" in
+  start)
+       is_yes "$BT_LOAD" && load_module bt865 $BT_OPT
+       load_module adv717x $ADV_OPT
+       load_module em8300 $EM_OPT
+       run_cmd "Loading em8300 microcode" "sh -c 'em8300_microcode_upload 2>/dev/null'"
+       touch /var/lock/subsys/em8300
+       ;;
+  stop)
+        run_cmd "Removing em8300 modules" "sh -c 'rmmod em8300 adv717x bt865 2>/dev/null'"
+       rm -f /var/lock/subsys/em8300
+       ;;
+  restart)
+       $0 stop
+       $0 start
+       ;;
+  *)
+       msg_usage "$0 {start|stop|restart}"
+       exit 1
+esac
+
+exit 0
+
diff --git a/em8300.sysconf b/em8300.sysconf
new file mode 100644 (file)
index 0000000..8f5cc8b
--- /dev/null
@@ -0,0 +1,16 @@
+#
+# Options for em8300 modules
+#
+# Works for _my_ dxr3. If you have hollywood plus, then set BT_LOAD=no,
+# and use_bt865=0. Try tweaking with other options if your picture is
+# wrong. See project's homepage to know more about them.
+#
+
+BT_LOAD=yes
+
+BT_OPT=""
+
+ADV_OPT="pixelport_16bit=1 pixelport_other_pal=1"
+
+EM_OPT="dicom_fix=1 dicom_control=1 dicom_other_pal=1 activate_loopback=0\
+        use_bt865=1 bt865_ucode_timeout=0"
This page took 0.119242 seconds and 4 git commands to generate.