repo.or.cz
/
openembedded.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
cornucopia: bump SRCREV
[openembedded.git]
/
recipes
/
i2c
/
files
/
i2c.init
blob
957ce68c7b6e232d2d0609c856ef461c63a11324
1
#!/bin/sh
2
#
3
# Start i2c support
4
#
5
6
start
() {
7
echo
"Starting i2c..."
8
9
/
sbin
/
modprobe i2c-pxa
10
/
sbin
/
modprobe i2c-dev
11
}
12
stop
() {
13
echo
"Stopping i2c..."
14
15
}
16
restart
() {
17
stop
18
start
19
}
20
21
case
"
$1
"
in
22
start
)
23
start
24
;;
25
stop
)
26
stop
27
;;
28
restart
)
29
restart
30
;;
31
*)
32
echo
$
"Usage:
$0
{start|stop|restart}"
33
exit
1
34
esac
35
36
exit
$?
37