Enable USB gadget service in images
This commit is contained in:
1 parent
9f43312ce0
commit
a555055f74
2 files changed
+3
-1
No files matched your search
@@ -52,6 +52,8 @@ define Package/$(PKG_NAME)/install
|
|||||||
$(INSTALL_BIN) ./files/usb-gadget.sh $(1)/usr/sbin/usb-gadget
|
$(INSTALL_BIN) ./files/usb-gadget.sh $(1)/usr/sbin/usb-gadget
|
||||||
$(INSTALL_DIR) $(1)/etc/init.d
|
$(INSTALL_DIR) $(1)/etc/init.d
|
||||||
$(INSTALL_BIN) ./files/usb-gadget.init $(1)/etc/init.d/usb-gadget
|
$(INSTALL_BIN) ./files/usb-gadget.init $(1)/etc/init.d/usb-gadget
|
||||||
|
$(INSTALL_DIR) $(1)/etc/rc.d
|
||||||
|
$(LN) ../init.d/usb-gadget $(1)/etc/rc.d/S99usb-gadget
|
||||||
$(INSTALL_DIR) $(1)/etc/config
|
$(INSTALL_DIR) $(1)/etc/config
|
||||||
$(INSTALL_CONF) ./files/usbgadget.config $(1)/etc/config/usbgadget
|
$(INSTALL_CONF) ./files/usbgadget.config $(1)/etc/config/usbgadget
|
||||||
endef
|
endef
|
||||||
|
|||||||
@@ -80,7 +80,7 @@ load_config() {
|
|||||||
|
|
||||||
log() {
|
log() {
|
||||||
logger -t usb-gadget "$*"
|
logger -t usb-gadget "$*"
|
||||||
echo "[$(date '+%H:%M:%S')] $*"
|
echo "[$(date '+%H:%M:%S')] $*" >&2
|
||||||
}
|
}
|
||||||
|
|
||||||
error() {
|
error() {
|
||||||
|
|||||||
Reference in new issue
Block a user