Compare commits

...

50 Commits
wps ... dongle

Author SHA1 Message Date
Arun Muthusamy
7fd4081ed6 libmobile: update hash & comment dongle_nl package 2018-06-29 10:10:06 +02:00
Arun Muthusamy
f43aa248b8 libmobile: update hash 2018-06-28 15:00:20 +02:00
Jakob Olsson
309b61de24 Makefile: add eval for dongle_nl package 2018-06-28 13:51:52 +02:00
Ionuț-Alex Oprea
7e10477068 update hash 2018-06-28 12:10:26 +02:00
Arun Muthusamy
fd061cdd8a libmobile: update pkg source hash 2018-06-28 10:56:40 +02:00
Arun Muthusamy
578d09487b add dongle netlink package 2018-06-28 10:37:17 +02:00
Jakob Olsson
f56b7b8df5 Makefile: hash update 2018-06-27 12:13:34 +02:00
Jakob Olsson
d7a0398ecf init.d: add default value to debug
Add default value to debug so that an extra check whether debug has been initiated is not required prior to checking if it is greater than 0.
2018-06-27 12:13:19 +02:00
Jakob Olsson
ae9c860007 init.d: remove unused stuff, only send debug flag if debug is active 2018-06-27 10:59:18 +02:00
Jakob Olsson
931cda8f5b hotplug/usb: remove unused code/testing prints, update ubus method name to call 2018-06-27 10:58:36 +02:00
Jakob Olsson
24d4094d25 hotplug/iface: remove some unused prints, update call to method name change from update to refresh 2018-06-27 10:57:39 +02:00
Jakob Olsson
290fcdd0c8 config/mdmngr: remove unused variable 2018-06-27 10:56:47 +02:00
Jakob Olsson
9a23f3b482 Makefile: update hash, change binary name of file to transfer 2018-06-27 10:55:29 +02:00
Jakob Olsson
9281dfc9ae hash udpate 2018-06-25 10:17:24 +02:00
Jakob Olsson
f2849eeddb Makefile: update hash and lib name 2018-06-15 09:07:49 +02:00
Jakob Olsson
d216665098 hash update 2018-06-14 15:40:41 +02:00
Jakob Olsson
f4d7385c52 Makefile: remove old library transfers 2018-06-14 15:23:09 +02:00
Jakob Olsson
01f0c60e72 add hotplug scripts, hash update 2018-06-12 10:32:09 +02:00
Jakob Olsson
94ecc5f614 update to include wrapper files, hash 2018-06-08 11:23:46 +02:00
Jakob Olsson
40113acada fix tupo, hash 2018-06-08 08:29:40 +02:00
Jakob Olsson
e073a4008f hash and xml2 2018-06-04 16:10:38 +02:00
Jakob Olsson
54fd4d7a39 hash and add xml lib 2018-06-04 15:46:03 +02:00
Jakob Olsson
84bd349ec4 hash 2018-06-01 15:07:12 +02:00
Jakob Olsson
6a9431f5db hash change 2018-06-01 15:00:36 +02:00
Jakob Olsson
2cd840179a hash update 2018-06-01 14:57:23 +02:00
Jakob Olsson
3704bbbadd changes to lib names and hash 2018-06-01 14:53:17 +02:00
Jakob Olsson
fd41e108a4 hash update 2018-06-01 08:48:46 +02:00
Jakob Olsson
d687c94b76 change libmobiled to mdmngr, hash 2018-05-31 15:52:13 +02:00
Jakob Olsson
f35372165d hash 2018-05-31 15:52:13 +02:00
Jakob Olsson
f04bf92f2d hash 2018-05-31 15:52:13 +02:00
Jakob Olsson
6ff6c6f04f hash update 2018-05-31 15:52:13 +02:00
Jakob Olsson
fad8708b5c minor errors and hash update 2018-05-31 15:52:13 +02:00
Jakob Olsson
db5e3e7f8c remove uci dependency, hash update 2018-05-31 15:52:13 +02:00
Jakob Olsson
8dbd11cde3 hash update 2018-05-31 15:52:13 +02:00
Jakob Olsson
d5000fbf2e further accomodations for uci 2018-05-31 15:52:13 +02:00
Jakob Olsson
6f423990f5 some changes for uci 2018-05-31 15:52:13 +02:00
Jakob Olsson
24b4dfcd74 hash update 2018-05-31 15:52:13 +02:00
Jakob Olsson
8e433998f0 update hash, change files to accomodate single application & lib 2018-05-31 15:52:13 +02:00
Jakob Olsson
62ed4fb651 hash change, update initd script 2018-05-31 15:52:13 +02:00
Jakob Olsson
6968be676d hash updates 2018-05-31 15:52:13 +02:00
Jakob Olsson
da31984f3e removed unnecessary libraries, update hash 2018-05-31 15:52:13 +02:00
Jakob Olsson
ca5f5bc1af hash change 2018-05-31 15:52:13 +02:00
Jakob Olsson
1855fee7b6 add new package option to libmobile, DOES NOT WORK THOUGH, and hash updates 2018-05-31 15:52:13 +02:00
Jakob Olsson
cdfc24efb9 hash update 2018-05-31 15:52:13 +02:00
Jakob Olsson
9e04878717 fix to makefile 2018-05-31 15:52:13 +02:00
Jakob Olsson
dc2300bf66 newest verison, need use installdev somehow... 2018-05-31 15:52:13 +02:00
Jakob Olsson
0b430906cb include build/installDev, remove some old stuff 2018-05-31 15:52:13 +02:00
Jakob Olsson
9c39d1d394 hash and small fix 2018-05-31 15:52:13 +02:00
Jakob Olsson
f631a40159 using onboarding as 2nd repo for application daemons 2018-05-31 15:52:13 +02:00
Jakob Olsson
eb24f9330b some makefile experiement - will not work from same git repo 2018-05-31 15:52:09 +02:00
5 changed files with 138 additions and 0 deletions

77
libmobile/Makefile Normal file
View File

@@ -0,0 +1,77 @@
#
# Copyright (C) 2013 Inteno
#
include $(TOPDIR)/rules.mk
include $(INCLUDE_DIR)/kernel.mk
PKG_NAME:=libmobile
PKG_VERSION:=0.1
PKG_SOURCE_VERSION:=62db19a67357473f1f8eb7b36c5c48a0baad55c6
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=git@public.inteno.se:mobile-api.git
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
include $(INCLUDE_DIR)/package.mk
define Package/libmobile
CATEGORY:=Libraries
DEPENDS:=+libubox +ubus +libcurl +libxml2
TITLE:=package for 4g dongle stuff
endef
define Package/mdmngr
CATEGORY:=Utilities
DEPENDS:=+libubox +ubus +libmobile
TITLE:=application package for 4g dongle stuff
endef
#define Package/dongle_nl
# CATEGORY:=Utilities
# TITLE:=Dongle Netlink
# URL:=
# DEPENDS:=+libuci +libubus +libblobmsg-json +libnl-genl
#endef
define Package/libmobile/description
a library to communicate with dongles through HTTP requests
endef
define Package/mdmngr/description
application using libmobile to communicate with a 4g dongle
endef
#define Package/dongle_nl/description
# Dongle application handling netlink messages from kernel and sending them out on ubus.
#endef
define Build/InstallDev
$(INSTALL_DIR) $(1)/usr/include/ $(1)/usr/lib
$(INSTALL_DATA) $(PKG_BUILD_DIR)/libmobile.h $(1)/usr/include/
$(INSTALL_DATA) $(PKG_BUILD_DIR)/libmobile.so $(1)/usr/lib/
endef
define Package/libmobile/install
$(INSTALL_DIR) $(1)/usr/lib/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/libmobile.so $(1)/usr/lib/
endef
define Package/mdmngr/install
$(CP) ./files/* $(1)/ # copy from files to final image
$(INSTALL_DIR) $(1)/sbin # make the dir
$(INSTALL_BIN) $(PKG_BUILD_DIR)/mdmngr $(1)/sbin/ # copy binaries to new directory
endef
#define Package/dongle_nl/install
# $(INSTALL_BIN) $(1)/sbin # make the dir
# $(INSTALL_BIN) $(PKG_BUILD_DIR)/dongle_nl $(1)/sbin/
#endef
$(eval $(call BuildPackage,libmobile))
$(eval $(call BuildPackage,mdmngr))
#$(eval $(call BuildPackage,dongle_nl))

View File

@@ -0,0 +1,2 @@
config mdmngr mdmngr
option debug 1

View File

@@ -0,0 +1,8 @@
if echo $DEVICE | grep "eth";then
ubus call dongle refresh
fi
if echo $DEVICE | grep "usb";then
ubus call dongle refresh
fi

View File

@@ -0,0 +1,17 @@
DEV_MOUNTPATH=`echo "$DEVPATH" | cut -d'/' -f 1-7`
JUNK=`echo "$DEVPATH" | cut -d'/' -f 8`
case "$ACTION" in
add)
if [ -z "$JUNK" ];then
#ubus call dongle alert '{"path":"/sys'${DEV_MOUNTPATH}'"}'
ubus call dongle refresh
fi
;;
remove)
ubus call dongle refresh
;;
*)
;;
esac

View File

@@ -0,0 +1,34 @@
#!/bin/sh /etc/rc.common
START=14
STOP=96
USE_PROCD=1
NAME=dongled
start_service() {
procd_open_instance
config_load mdmngr
config_get debug mdmngr debug 0
procd_set_param command "/sbin/mdmngr"
# procd_append_param command --debug "$debug"
if [ "$debug" -gt 0 ]
then
procd_append_param command --debug "$debug"
fi
procd_set_param respawn
procd_set_param stdout 1
procd_set_param stderr 1
procd_close_instance
}
service_triggers()
{
procd_add_reload_trigger mdmngr
}
reload_service() {
stop
start
}