Welcome to mirror list, hosted at ThFree Co, Russian Federation.

S78clvcon « init.d « etc « rootfs « hakchi « mod_hakchi « mods - github.com/ClusterM/hakchi2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 9b47abc4c4e83e2a977330c2686c9944ea977d09 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#!/bin/sh

CLV_BOARD_NAME=$(cat /etc/clover/boardtype)
MODULE="clvcon"
[ -f "/lib/modules/$(uname -r)/extra/$MODULE.ko" ] || MODULE="clovercon"

start()
{
        echo "$MODULE: starting driver"
        case "${CLV_BOARD_NAME}" in
                fp) 
                        # inverted c1/c2 detect lines               
                        MODULE_PARAMS="2,195,1,194"
                        ;;
                ep|dp-nes|dp-shvc)                                  
                        # regular setup w/ detect lines
                        MODULE_PARAMS="1,195,2,194"
                        ;;                                                      
                dp-hvc)                          
                        # no detect lines        
                        MODULE_PARAMS="1,-1,2,-1"                                
                        ;;                         
        esac                                       
        modprobe "$MODULE" module_params=$MODULE_PARAMS 
}                                                      
                                                       
stop()                                                 
{                                      
        echo "$MODULE: stopping driver"
        modprobe -r "$MODULE"          
}                                      
                                       
case "$1" in                 
start)       
        start
;;           
stop)        
        stop 
;;          
restart)    
        stop 
        start
;;           
*)                                                         
        echo "$MODULE: Please use start, stop, or restart."
        exit 1                                             
esac