diff options
author | Marcin Juszkiewicz <hrw@openedhand.com> | 2007-06-01 11:36:41 +0000 |
---|---|---|
committer | Marcin Juszkiewicz <hrw@openedhand.com> | 2007-06-01 11:36:41 +0000 |
commit | 12212aa298f65d996b4fddddb081000e34319279 (patch) | |
tree | d78a850532bcdb3a6fe78d288a94e17d128dd1c4 /meta/packages/oh/usbinit | |
parent | 1e2d2eb33a5fba729445a71ce855c4536c909de5 (diff) | |
download | poky-12212aa298f65d996b4fddddb081000e34319279.tar.gz |
usbinit: updated to more generic version
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@1845 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/packages/oh/usbinit')
-rwxr-xr-x | meta/packages/oh/usbinit/usb-gether | 32 |
1 files changed, 18 insertions, 14 deletions
diff --git a/meta/packages/oh/usbinit/usb-gether b/meta/packages/oh/usbinit/usb-gether index 590e77b22a..e80a0bb30e 100755 --- a/meta/packages/oh/usbinit/usb-gether +++ b/meta/packages/oh/usbinit/usb-gether | |||
@@ -1,19 +1,23 @@ | |||
1 | #!/bin/sh | 1 | #! /bin/sh |
2 | # | ||
3 | # usb-ether Start up the gadget usb ethernet interface. | ||
4 | # | ||
2 | 5 | ||
3 | case "$1" in | 6 | case "$1" in |
4 | start) | 7 | start|"") |
5 | /sbin/depmod -a | 8 | test "$VERBOSE" != no && echo "Initializing g_ether gadget..." |
6 | /sbin/modprobe g_ether | 9 | modprobe g_ether |
7 | ifconfig usb0 192.168.1.120 | 10 | ifup usb0 |
8 | ;; | 11 | ;; |
9 | 12 | stop) | |
10 | stop) | 13 | test "$VERBOSE" != no && echo "Disabling g_ether..." |
11 | 14 | ifdown usb0 | |
12 | ;; | 15 | rmmod g_ether |
13 | 16 | ;; | |
14 | *) | 17 | *) |
15 | echo "usage: $0 { start | stop }" | 18 | echo "Usage: usb-ether {start|stop}" >&2 |
16 | ;; | 19 | exit 1 |
20 | ;; | ||
17 | esac | 21 | esac |
18 | 22 | ||
19 | exit 0 | 23 | exit 0 |