summaryrefslogtreecommitdiff
path: root/recipes/ti/gstreamer-ti/omap3/gstreamer-ti-rc.sh
blob: cd9358f50c8df4b06db142c03ff3cd446055d89d (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
#!/bin/sh
#
# configure kernel modules to run gst-ti plugins elements
#

load_module() {
    echo 
    echo -n "Running /usr/share/ti/gst/omap3530/loadmodules.sh"
    sh /usr/share/ti/gst/omap3530/loadmodules.sh
}

unload_module() {
   rmmod cmemk
   rmmod lpm_omap3530
   rmmod dsplinkk
   rmmod sdmak
}

case "$1" in
      start) 
             echo -n "Loading kernel modules for gstreamer-ti... "
             load_module
             echo "  done"
             ;;
       stop) 
             echo -n "Unloading kernel module ..."
             unload_module
             echo "   done"
             ;;
        restart) 
             echo -n "Unloading kernel module ..."
             unload_module
             echo "   done"
             echo -n "Loading kernel modules for gstreamer-ti... "
             load_module
             echo "  done"
             ;;
        *)
             echo "$0 <start/stop/restart>"
             ;;
esac