diff options
author | Koen Kooi <koen@openembedded.org> | 2009-01-10 10:44:13 +0100 |
---|---|---|
committer | Koen Kooi <koen@openembedded.org> | 2009-01-10 10:44:13 +0100 |
commit | d076ad3dbeac4bf7a58a335348c1560dd23799a7 (patch) | |
tree | f402fe30741bb8ea76d0f411a1179c6ac937be76 /packages/i2c/files/i2c.init | |
parent | 06af67f2e653d6b0d45117f9aaad0b25db1eaa67 (diff) |
gumstix utils: add char-driver, gpio-event, i2c and microwindows
Diffstat (limited to 'packages/i2c/files/i2c.init')
-rwxr-xr-x | packages/i2c/files/i2c.init | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/packages/i2c/files/i2c.init b/packages/i2c/files/i2c.init new file mode 100755 index 0000000000..957ce68c7b --- /dev/null +++ b/packages/i2c/files/i2c.init @@ -0,0 +1,37 @@ +#!/bin/sh +# +# Start i2c support +# + +start() { + echo "Starting i2c..." + + /sbin/modprobe i2c-pxa + /sbin/modprobe i2c-dev +} +stop() { + echo "Stopping i2c..." + +} +restart() { + stop + start +} + +case "$1" in + start) + start + ;; + stop) + stop + ;; + restart) + restart + ;; + *) + echo $"Usage: $0 {start|stop|restart}" + exit 1 +esac + +exit $? + |