summaryrefslogtreecommitdiffstats
path: root/recipes-ti/beagleboard/gadget-init/network-gadget-init.service
diff options
context:
space:
mode:
authorJoel A Fernandes <joelagnel@ti.com>2011-11-10 00:06:35 -0600
committerKoen Kooi <koen@dominion.thruhere.net>2011-11-10 08:23:08 +0100
commit89c54f502b38ec21e79056a5510f77836d013e81 (patch)
tree8679cbdb468fdf5abfa55bc63b537d174f2205d1 /recipes-ti/beagleboard/gadget-init/network-gadget-init.service
parent2cd35f07bfcb6ea76f329d6f278a7d7e98c5d79a (diff)
downloadmeta-ti-89c54f502b38ec21e79056a5510f77836d013e81.tar.gz
gadget-init: Add network-gadget services and other fixes
* Add rule to start network-gadget when mass storage is ejected * Add network-gadget-init service and scripts to switch to g_ether * Add DHCP service / conf * Update to storage-gadget: rmmod on stop v2 changes: * Fix g-ether MAC address by reading from mac_id * Split into multiple packages Signed-off-by: Joel A Fernandes <joelagnel@ti.com> Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Diffstat (limited to 'recipes-ti/beagleboard/gadget-init/network-gadget-init.service')
-rw-r--r--recipes-ti/beagleboard/gadget-init/network-gadget-init.service9
1 files changed, 9 insertions, 0 deletions
diff --git a/recipes-ti/beagleboard/gadget-init/network-gadget-init.service b/recipes-ti/beagleboard/gadget-init/network-gadget-init.service
new file mode 100644
index 00000000..979d8aa4
--- /dev/null
+++ b/recipes-ti/beagleboard/gadget-init/network-gadget-init.service
@@ -0,0 +1,9 @@
1[Unit]
2Description=Start USB Ethernet gadget
3Conflicts=storage-gadget-init.service
4
5[Service]
6RemainAfterExit=yes
7ExecStart=/usr/bin/g-ether-load.sh
8ExecStartPost=/sbin/ifconfig usb0 192.168.7.2 netmask 255.255.255.252
9ExecStop=/sbin/rmmod g_ether