summaryrefslogtreecommitdiff
path: root/packages/usb-gadget-mode
diff options
context:
space:
mode:
authorMichael 'Mickey' Lauer <mickey@vanille-media.de>2008-12-27 00:56:58 +0100
committerMichael 'Mickey' Lauer <mickey@vanille-media.de>2008-12-27 00:56:58 +0100
commit473a939a201eb0bf8812bb2f4e8032e020ec1ad1 (patch)
treecb89e8afe49fcc50662ca9258091e3350e7281a1 /packages/usb-gadget-mode
parent4e038ba7d25f8e8170ceaee40e53289434fe4f59 (diff)
usb-gadget-mode: remove excessive whitespace and fix PACKAGE_ARCH setting
Diffstat (limited to 'packages/usb-gadget-mode')
-rw-r--r--packages/usb-gadget-mode/usb-gadget-mode.bb31
1 files changed, 11 insertions, 20 deletions
diff --git a/packages/usb-gadget-mode/usb-gadget-mode.bb b/packages/usb-gadget-mode/usb-gadget-mode.bb
index d1fab638f2..daf7cfbe37 100644
--- a/packages/usb-gadget-mode/usb-gadget-mode.bb
+++ b/packages/usb-gadget-mode/usb-gadget-mode.bb
@@ -1,5 +1,3 @@
-#! /bin/sh
-#
# Copyright Matthias Hentges <devel@hentges.net> (c) 2007
# License: MIT (see http://www.opensource.org/licenses/mit-license.php
# for a copy of the license)
@@ -10,23 +8,14 @@
DESCRIPTION = "Manage the default USB gadget mode"
SECTION = "console/network"
LICENSE = "GPL"
-
-######################################################################################
-
PV = "0.0.2"
-PR = "r0"
-
-######################################################################################
+PR = "r1"
-PACKAGE_ARCH = "${MACHINE_ARCH}"
-
-######################################################################################
-
-SRC_URI = "file://usb-gadget.conf \
- file://usb-gadget \
- file://usb-gadget.init"
-
-######################################################################################
+SRC_URI = "\
+ file://usb-gadget.conf \
+ file://usb-gadget \
+ file://usb-gadget.init \
+"
do_install() {
install -d ${D}${sysconfdir}
@@ -39,12 +28,14 @@ do_install() {
install -m 0755 ${WORKDIR}/usb-gadget ${D}${bindir}
}
-pkg_postinst() {
-
+pkg_postinst_${PN}() {
test -n "$D" && opt="-r $D"
update-rc.d $opt usb-gadget defaults 50
}
-pkg_postrm() {
+pkg_postrm_${PN}() {
update-rc.d -f usb-gadget remove
}
+
+PACKAGE_ARCH_${PN} = "${MACHINE_ARCH}"
+