summaryrefslogtreecommitdiff
path: root/recipes-connectivity/usb-gadget-mode/files/usb-gadget.init
blob: 403fd239dbdd109029535b6c0c4020fec053c609 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#! /bin/sh
#
# Copyright Matthias Hentges <devel@hentges.net> (c) 2007
# License: GPL (see http://www.gnu.org/licenses/gpl.txt for a copy of the license)
#
# Filename: usb-gadget.init
# Date: 20070606 (YMD)
#
#################################################################################
#
# 20070606 - v0.0.1	- Initial release

ENABLED="yes"

[ -r /etc/default/usb-gadget ] && source /etc/default/usb-gadget
[ "$ENABLED" == "yes" ] || exit 0

case "$1" in 
start)		usb-gadget ;;
esac