CN108958845A - A kind of method, apparatus and electronic equipment based on openwrt system administration ipk application - Google Patents
A kind of method, apparatus and electronic equipment based on openwrt system administration ipk application Download PDFInfo
- Publication number
- CN108958845A CN108958845A CN201810820301.7A CN201810820301A CN108958845A CN 108958845 A CN108958845 A CN 108958845A CN 201810820301 A CN201810820301 A CN 201810820301A CN 108958845 A CN108958845 A CN 108958845A
- Authority
- CN
- China
- Prior art keywords
- ipk
- application
- attribute information
- configuration
- installation package
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44505—Configuring for program initiating, e.g. using registry, configuration files
- G06F9/4451—User profiles; Roaming
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/61—Installation
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/2866—Architectures; Arrangements
- H04L67/30—Profiles
Abstract
The embodiment of the invention discloses a kind of method, apparatus and electronic equipment based on openwrt system administration ipk application, which comprises downloads corresponding ipk application installation package from application server according to downloading instruction;As the installation ipk in application, obtaining the pre-set and ipk from the file header of the ipk application installation package using matched attribute information, and the attribute information is saved to configuration file;Ipk application is managed according to the attribute information;Wherein, the attribute information includes at least one of ipk Apply Names, starting script mark, ipk application process title and configuration path page web.By using above-mentioned technical proposal, realizes and quickly and easily ipk application is managed.
Description
Technical field
The present embodiments relate to intelligent router technical fields, more particularly to one kind to be based on openwrt system administration ipk
The method, apparatus and electronic equipment of application.
Background technique
Router is the equipment for connecting each local area network, wide area network in internet, is internet " transport hub ".With skill
The development of art, traditional router is gradually replaced intelligent router.Intelligent router has compared to conventional router
Independent operating system can voluntarily be installed various application software by user, voluntarily control bandwidth and voluntarily be controlled in informant
Number etc..
With based on the intelligent router of openwrt system be typical case, step into subscriber household in recent years, be user with
Entertainment abundant and preferable usage experience are come.Program installation kit under openwrt system is known as ipk.But at present
The mountable ipk on the intelligent router based on openwrt system is using there is also following defects: 1, ipk application installation package
File header information it is too simple, be not easy to system specifications management;2, many ipk are using there are many problems, such as can disappear
Consume a large amount of system resource so that influence system normal operation;3, user installation or unloading ipk application need to pass through order
Row carries out, and process is complicated, and general unprofessional user can not independently be installed and used, and user experience is caused to reduce.
Summary of the invention
The embodiment of the present invention provides a kind of method, apparatus and electronic equipment based on openwrt system administration ipk application,
To be managed according to attribute information abundant in ipk application installation package file header to ipk application.
To achieve the above object, the embodiment of the present invention adopts the following technical scheme that
In a first aspect, the embodiment of the invention provides a kind of method based on openwrt system administration ipk application, it is described
Method includes:
Corresponding ipk application installation package is downloaded from application server according to downloading instruction;
When the ipk is installed in application, obtained from the file header of the ipk application installation package it is pre-set with it is described
Ipk applies matched attribute information, and the attribute information is saved to configuration file;
Ipk application is managed according to the attribute information;
Wherein, the attribute information includes ipk Apply Names, starting script mark, ipk application process title and configuration
At least one of path page web.
Further, described according to when the attribute information includes ipk Apply Names and starting script mark
Attribute information is managed ipk application, comprising:
When receiving the instruction for starting the ipk application operation, from installation file corresponding with the ipk Apply Names
It is found under catalogue and identifies matched starting script with the starting script;
Start the starting script, so that ipk application starting operation.
Further, when the attribute information includes ipk Apply Names and ipk application process title, the basis
The attribute information is managed ipk application, comprising:
Before ipk application starting operation, detected by the ipk Apply Names and ipk application process title
Whether the ipk application has run, and reruns to avoid ipk application;Alternatively,
When being configured to ipk application, detected by the ipk Apply Names and ipk application process title
Whether the ipk application has run, and shows starting application according to operating status or close the button of application;Alternatively,
When receiving the unloading ipk in application, compulsory withdrawal process corresponding with the ipk application process title, and
Delete installation file catalogue corresponding with the ipk Apply Names.
Further, when the attribute information include configuration the path the page web when, it is described according to the attribute information to institute
Ipk application is stated to be managed, comprising:
According to configuration-direct, based on the configuration path the page web display configuration page.
Further, the method also includes:
Judge whether the ipk application meets preset condition;
When ipk application meets preset condition, ipk application is packaged based on setting rule, generates ipk
Application installation package;
The ipk application installation package is uploaded to the application server.
It is further, described to judge whether the ipk application meets preset condition, comprising:
The ipk is applied and is previously run on the intelligent router based on openwrt system;
If the memory and cpu occupancy of the ipk application are respectively less than given threshold, it is determined that the ipk application meets
Preset condition.
Further, when ipk application meets preset condition, ipk application is beaten based on setting rule
Packet generates ipk application installation package, comprising:
Setting is generated with the ipk using matched attribute information in the file header for the ipk application for meeting preset condition
Ipk application installation package.
Second aspect, it is described the embodiment of the invention provides a kind of device based on openwrt system administration ipk application
Device includes:
Download module, for downloading corresponding ipk application installation package from application server according to downloading instruction;
Preserving module installs the ipk in application, obtaining from the file header of the ipk application installation package pre- for working as
What is be first arranged applies matched attribute information with the ipk, and the attribute information is saved to configuration file;
Management module, for being managed according to the attribute information to ipk application;
Wherein, the attribute information includes ipk Apply Names, starting script mark, ipk application process title and configuration
At least one of path page web.
The third aspect the embodiment of the invention provides a kind of electronic equipment, including memory, processor and is stored in storage
On device and the computer program that can run on a processor, the processor realizes such as above-mentioned the when executing the computer program
Method based on openwrt system administration ipk application described in one side.
Fourth aspect, the embodiment of the invention provides a kind of storage medium comprising computer executable instructions, the meters
Calculation machine executable instruction realized when being executed as computer processor as described in above-mentioned first aspect based on openwrt system pipes
The method for managing ipk application.
A kind of method based on openwrt system administration ipk application provided in an embodiment of the present invention, by being applied in ipk
Attribute information abundant is set in the file header of installation kit, when installing ipk application from the file header described in acquisition
Attribute information abundant, and save to configuration file, according to the attribute information to institute during ipk application is run
It states ipk application to be managed automatically, realizes and quickly and easily ipk application is managed.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, institute in being described below to the embodiment of the present invention
Attached drawing to be used is needed to be briefly described, it should be apparent that, the accompanying drawings in the following description is only some implementations of the invention
Example, for those of ordinary skill in the art, without creative efforts, can also implement according to the present invention
The content of example and these attached drawings obtain other attached drawings.
Fig. 1 is a kind of method flow signal based on openwrt system administration ipk application that the embodiment of the present invention one provides
Figure;
Fig. 2 is a kind of method flow signal based on openwrt system administration ipk application provided by Embodiment 2 of the present invention
Figure;
Fig. 3 is that another method flow based on openwrt system administration ipk application provided by Embodiment 2 of the present invention shows
It is intended to;
Fig. 4 is a kind of apparatus structure signal based on openwrt system administration ipk application that the embodiment of the present invention three provides
Figure;
Fig. 5 is the structural schematic diagram for a kind of electronic equipment that the embodiment of the present invention four provides.
Specific embodiment
To keep the technical problems solved, the adopted technical scheme and the technical effect achieved by the invention clearer, below
It will the technical scheme of the embodiment of the invention will be described in further detail in conjunction with attached drawing, it is clear that described embodiment is only
It is a part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those skilled in the art exist
Every other embodiment obtained under the premise of creative work is not made, shall fall within the protection scope of the present invention.
Embodiment one
Fig. 1 is a kind of method flow signal based on openwrt system administration ipk application that the embodiment of the present invention one provides
Figure.The method of the disclosed management ipk application of the present embodiment is applied in openwrt system, and this method can be by being based on openwrt
The device of system administration ipk application executes, and wherein the device can be implemented by software and/or hardware, and be typically integrated in terminal
In, such as intelligent router etc..Referring specifically to shown in Fig. 1, this method comprises the following steps:
110, corresponding ipk application installation package is downloaded from application server according to downloading instruction.
Wherein, the downloading instruction is usually issued by user, specifically, user can pass through the intelligent terminals such as mobile phone
The upper and associated app of intelligent router (application, application program) search target ipk application, then according to search result
" downloading " the button triggering downloading instruction of display.The application program operated under openwrt system is commonly referred to as ipk application, by
In the operation characteristic of openwrt system, currently, ipk application is installed, configured and is unloaded under openwrt system
It manages and is required to realize by way of order line, cause unprofessional user not carry out independently, therefore user experience is not high, needle
In this regard, the present embodiment proposes a kind of method based on openwrt system administration ipk application, pacify particular by ipk application
It fills in the file header of packet and attribute information abundant is set, when being installed to ipk application, by obtaining the attribute information simultaneously
It saves into configuration file, ipk application is managed automatically according to the attribute information later, is realized to ipk application
Standardized management, and it is convenient, fast, it no longer needs to obtain correlation attribute information by way of order line.
120, when the ipk is installed in application, obtained from the file header of the ipk application installation package it is pre-set with
The ipk applies matched attribute information, and the attribute information is saved to configuration file.
Wherein, the attribute information includes ipk Apply Names, starting script mark, ipk application process title and configuration
At least one of path page web, the ipk Apply Names are for positioning ipk application.The starting script mark is used for
Corresponding starting script is searched under the installation file catalogue that the ipk is applied, with the starting operation for facilitating the ipk to apply, is not necessarily to
User finds the executable file of ipk application by way of order line again, is then reached by running the executable file
To the purpose for starting ipk application.On the one hand the ipk application process title is used to detect the current operation of the ipk application
State, if ipk application is currently at operating status, being shown to button of the user for opening the ipk application is mistake
Effect state, the button for closing ipk application are state of activation, if the ipk is applied currently without in operating status,
Then being shown to button of the user for opening the ipk application is state of activation, is lost for closing the button of the ipk application
Effect state.On the other hand, the ipk application process title is also used to unload the ipk application, when needs apply the ipk
When being unloaded, then the ipk is executed into compulsory withdrawal operation using corresponding process, normally to unload the ipk application.
130, ipk application is managed according to the attribute information.
Wherein, the management may include described using being configured, being unloaded or being detected whether to rerun to the ipk
Ipk application.
Illustratively, described according to when the attribute information includes ipk Apply Names and starting script mark
Attribute information is managed ipk application, comprising:
When receiving the instruction for starting the ipk application operation, from installation file corresponding with the ipk Apply Names
It is found under catalogue and identifies matched starting script with the starting script;
Start the starting script, so that ipk application starting operation.
Wherein, start the ipk to refer specifically to open the ipk application using operation.Each ipk application is corresponding with one
Installation file catalogue describes under installation file catalogue and installs the file that the ipk application generates, including starting script with
And save the configuration file etc. of the attribute information.
Illustratively, when the attribute information includes ipk Apply Names and ipk application process title, the basis
The attribute information is managed ipk application, comprising:
Before ipk application starting operation, detected by the ipk Apply Names and ipk application process title
Whether the ipk application has run, and reruns to avoid ipk application;Alternatively,
When being configured to ipk application, detected by the ipk Apply Names and ipk application process title
Whether the ipk application has run, and shows starting application according to operating status or close the button of application;Alternatively,
When receiving the unloading ipk in application, compulsory withdrawal process corresponding with the ipk application process title, and
Installation file catalogue corresponding with the ipk Apply Names is deleted to no longer need to pass through order line to realize one-touch unloading
Mode unloaded.Certainly, process corresponding with the ipk application process title if it does not exist, then can not execute pressure
Operation is exited, but detect whether the operation in the presence of process corresponding with the ipk application process title, compared to holding
Row compulsory withdrawal process operation, the time that detection operation is spent is relatively longer, therefore, does not execute usually and detects whether exist and institute
The operation of the corresponding process of ipk application process title is stated, but directly executes compulsory withdrawal and the ipk application process title pair
The operation for the process answered.
After starting the ipk application operation, it may appear that process corresponding with ipk application progress title, to realize
The ipk applies corresponding function, for example, be QQ acceleration in application, starting the application when the ipk is applied, then it is corresponding to occur
The function that corresponding process accelerates for realizing QQ.Simultaneously before ipk application starting operation, applied by the ipk
Title and ipk application process title detect whether the ipk application has run, and rerun to avoid ipk application,
It can guarantee the normal operation of the ipk application, once duplicating operation, then corresponding ipk application then will appear run-time error,
To influence the normal use of user.
Illustratively, when the attribute information include configuration the path the page web when, it is described according to the attribute information to institute
Ipk application is stated to be managed, comprising:
According to configuration-direct, based on the configuration path the page web display configuration page.
Wherein, the configuration refers specifically to turn on or off a certain function in ipk application, turns on or off ipk and answers
A certain function in usually passes through web page and is operated, such as it is video playing application that the ipk, which is applied, then can lead to
It crosses and the video playing application is configured, to select to close or open the function therein of receiving advertising information, by matching
Instruction is set, is realized according to the configuration path the page web display configuration page so that user carries out relevant operation according to the configuration page
The configuration page for quickly and easily entering ipk, avoids by being previously added each configuration page into web interface, root
It calls relevant web interface to realize the configuration applied to the ipk according to the order line that user inputs, realizes easy to use
Configuration page web management.
A kind of method based on openwrt system administration ipk application provided in this embodiment, by being installed in ipk application
Attribute information abundant is set in the file header of packet, when installing to ipk application, by obtaining the attribute information and protecting
It deposits into configuration file, ipk application is managed automatically according to the attribute information later, realizes the rule to ipk application
Generalized management, and it is convenient, fast, it no longer needs to obtain correlation attribute information by way of order line.
Embodiment two
Fig. 2 is a kind of method flow signal based on openwrt system administration ipk application provided by Embodiment 2 of the present invention
Figure.On the basis of the above embodiments, the present embodiment is optimized, and the benefit of optimization is to may insure the application server
In ipk application be do not influence openwrt system operation application.Referring specifically to shown in Fig. 2, this method may include as follows
Step:
210, judge whether the ipk application meets preset condition, if so, thening follow the steps 220, otherwise, terminate process.
Judge whether the ipk application meets preset condition specifically, described, comprising:
The ipk is applied and is previously run on the intelligent router based on openwrt system;
If the memory and cpu occupancy of the ipk application are respectively less than given threshold, it is determined that the ipk application meets
Preset condition.If the ipk application does not meet preset condition, related development personnel is notified to modify ipk application,
Until ipk application meets preset condition.
The ipk application for meeting preset condition is considered as the application that will not influence system stability and user experience,
If the memory and cpu occupancy of ipk application are all larger than given threshold, excessive system resource is necessarily consumed, can be led
The speed of service of cause system declines, or even the phenomenon that will appear systemic breakdown, therefore will affect system stability and user's body
Degree of testing.Currently, usually user arbitrarily downloads the intelligent road that any ipk application is installed to openwrt system from master-slave network
By the ipk application in device, causing often to occur being mounted with bug, so that ipk application consumes excessive system resource, shadow
Other ipk application that acoustic system operates normally, to influence system stability;Importantly, user, which can not also know, causes intelligence
Energy router can not be the ipk application for oneself being mounted with bug the reason of normal use, to influence user experience.In view of this,
The embodiment of the present application is by the way that each ipk application to be previously run on the intelligent router based on openwrt system in advance, if described
The memory and cpu occupancy of ipk application are respectively less than given threshold, it is determined that the ipk application meets preset condition, and to symbol
The ipk for closing preset condition is applied to be packaged based on setting rule, the application server is then uploaded to, so that it is guaranteed that user
The ipk application downloaded according to prompting download from the application server is all the high quality applications of not bug, is realized to ipk
The control of application quality.Those skilled in the art know, need the application server and the associated app of intelligent router
The downloading of middle correlation ipk application is associated, and after guaranteeing that user clicks " downloading " button, is downloaded from the application server
Related ipk application.It is described refer to the associated app of intelligent router that the intelligent router is carried out other operations such as controlling answer
Use program.
220, ipk application is packaged based on setting rule, generates ipk application installation package.
Wherein, ipk application is packaged based on setting rule, generates ipk application installation package, comprising:
Setting is generated with the ipk using matched attribute information in the file header for the ipk application for meeting preset condition
Ipk application installation package, the attribute information include: ipk Apply Names, starting script mark, ipk application process title and match
Set at least one of path page web.
Specifically, ipk application installation package file header can be expressed as follows under a kind of openwrt system:
PKG_VERSION:=2.831
PKG_RELEASE:=1
APP-EN-NAME:thunder
APP-CN-NAME: sudden peal of thunder remote download
APP-PROCESS:etm_moniter etm_main vod_httpserver
APP-SCRIPT:thunder-rd
Wherein, PKG_VERSION indicates the version number of current ipk application, and PKG_RELEASE indicates current ipk application
Publication number, APP-EN-NAME indicate that the English name of current ipk application, APP-CN-NAME indicate the Chinese of current ipk application
Title, APP-PROCESS indicate the carry out title of current ipk application, and APP-SCRIPT indicates the script mark of current ipk application
Know.
230, the ipk application installation package is uploaded to application serve.
240, corresponding ipk application installation package is downloaded from the application server according to downloading instruction.
250, when the ipk is installed in application, obtained from the file header of the ipk application installation package it is pre-set with
The ipk applies matched attribute information, and the attribute information is saved to configuration file.
260, ipk application is managed according to the attribute information.
A kind of method based on openwrt system administration ipk application provided in this embodiment, by applying ipk in base
It is previously run on the intelligent router of openwrt system, to detect whether the ipk application will affect openwrt system
Stability, if ipk application does not influence the stability of the openwrt system, to the installation file of ipk application into
Row is packaged simultaneously is arranged attribute information abundant in the file header of packaging file, in favor of the standardized administration applied to the ipk,
And the packaging file is uploaded to the application server and downloads use for user, the control to ipk application quality is realized,
It prevents ipk application from influencing the operation of intelligent router system or influences the basic function of surfing the Net of router, and simplify user couple
The configuration of ipk application and the management of unloading etc..
Based on the above technical solution, further, another kind shown in Figure 3 is based on openwrt system pipes
Manage the method flow schematic diagram of ipk application, which comprises
310, the ipk application for meeting above-mentioned preset condition is packaged, and be added in the packaging file head of ipk above-mentioned
Attribute information, then by the ipk application issue, that is, be uploaded in the application server.
320, the ipk application installation package is downloaded from the application server, and is obtained from the file header of ipk installation kit
The attribute information is taken, then saves the attribute information to configuration file.
330, the ipk is answered according to the attribute information in the configuration file during ipk application is run
With being run or be arranged.
340, when needing to unload the ipk in application, removing the ipk installation directory file according to the attribute information.
Embodiment three
Fig. 4 is a kind of apparatus structure signal based on openwrt system administration ipk application that the embodiment of the present invention three provides
Figure.Shown in Figure 4, described device includes: download module 410, preserving module 420 and management module 430;
Wherein, download module 410, for downloading corresponding ipk application installation package from application server according to downloading instruction;
Preserving module 420, for when the installation ipk from the file header of the ipk application installation package in application, obtain
It is pre-set to apply matched attribute information with the ipk, and the attribute information is saved to configuration file;
Management module 430, for being managed according to the attribute information to ipk application;Wherein, the attribute letter
Breath includes at least one in ipk Apply Names, starting script mark, ipk application process title and the configuration path page web
Kind.
Further, when the attribute information includes ipk Apply Names and starting script mark, management module 430
It is specifically used for:
When receiving the instruction for starting the ipk application operation, from installation path corresponding with the ipk Apply Names
Under find and the starting script identifies matched starting script;
Start the starting script, so that ipk application starting operation.
Further, when the attribute information includes ipk Apply Names and ipk application process title, management module
430 are specifically used for:
Before ipk application starting operation, detected by the ipk Apply Names and ipk application process title
Whether the ipk application has run, and reruns to avoid ipk application;Alternatively,
When being configured to ipk application, detected by the ipk Apply Names and ipk application process title
Whether the ipk application has run, and shows starting application according to operating status or close the button of application;Alternatively,
When receiving the unloading ipk in application, compulsory withdrawal process corresponding with the ipk application process title, and
Delete installation file catalogue corresponding with the ipk Apply Names.
Further, when the attribute information includes the configuration path page web, management module 430 is specifically used for:
According to configuration-direct, based on the configuration path the page web display configuration page.
Further, described device further include:
Judgment module, for judging whether the ipk application meets preset condition;
Packetization module, for when the ipk application meet preset condition when, based on setting rule to the ipk apply into
Row is packaged, and generates ipk application installation package;
Uploading module, for the ipk application installation package to be uploaded to the application server.
Further, the judgment module, comprising:
It being previously run unit, being transported in advance on the intelligent router based on openwrt system for applying the ipk
Row;
Determination unit, if the memory and cpu occupancy for ipk application are respectively less than given threshold, it is determined that institute
It states ipk application and meets preset condition.
Further, the packetization module be specifically used for meet preset condition ipk application file header in setting with
The ipk applies matched attribute information, generates ipk application installation package.
Device provided in this embodiment based on openwrt system administration ipk application, by ipk application installation package
Attribute information abundant is set in file header, when installing to ipk application, by obtaining the attribute information and saving extremely
In configuration file, ipk application is managed automatically according to the attribute information later, realizes the standardization to ipk application
Management, and it is convenient, fast, it no longer needs to obtain correlation attribute information by way of order line.
Example IV
Fig. 5 is the structural schematic diagram for a kind of electronic equipment that the embodiment of the present invention four provides.As shown in figure 5, the electronics is set
It is standby to include: processor 670, memory 671 and be stored in the computer journey that run on memory 671 and on processor 670
Sequence;Wherein, the quantity of processor 670 can be one or more, in Fig. 5 by taking a processor 670 as an example;Processor 670 is held
The method based on openwrt system administration ipk application as described in above-described embodiment one is realized when the row computer program.
As shown in figure 5, the electronic equipment can also include input unit 672 and output device 673.Processor 670, memory 671,
Input unit 672 can be connected with output device 673 by bus or other modes, in Fig. 5 for being connected by bus.
Memory 671 is used as a kind of computer readable storage medium, can be used for storing software program, journey can be performed in computer
Sequence and module, if device/module based on openwrt system administration ipk application in the embodiment of the present invention is (for example, be based on
Download module 410 and preserving module 420 in the device of openwrt system administration ipk application etc.).Processor 670 passes through operation
Software program, instruction and the module being stored in memory 671, thereby executing the various function application and number of electronic equipment
According to processing, that is, realize the above-mentioned method based on openwrt system administration ipk application.
Memory 671 can mainly include storing program area and storage data area, wherein storing program area can store operation system
Application program needed for system, at least one function;Storage data area, which can be stored, uses created data etc. according to terminal.This
Outside, memory 671 may include high-speed random access memory, can also include nonvolatile memory, for example, at least one
Disk memory, flush memory device or other non-volatile solid state memory parts.In some instances, memory 671 can be into one
Step includes the memory remotely located relative to processor 670, these remote memories can be set by network connection to electronics
Standby/storage medium.The example of above-mentioned network include but is not limited to internet, intranet, local area network, mobile radio communication and its
Combination.
Input unit 672 can be used for receiving the number or character information of input, and generates and set with the user of electronic equipment
It sets and the related key signals of function control inputs.Output device 673 may include that display screen etc. shows equipment.
Embodiment five
The embodiment of the present invention five also provides a kind of storage medium comprising computer executable instructions, and the computer can be held
Row instruction by computer processor when being executed for executing a kind of method based on openwrt system administration ipk application, the party
Method includes:
Corresponding ipk application installation package is downloaded from application server according to downloading instruction;
When the ipk is installed in application, obtained from the file header of the ipk application installation package it is pre-set with it is described
Ipk applies matched attribute information, and the attribute information is saved to configuration file;
Ipk application is managed according to the attribute information;
Wherein, the attribute information includes ipk Apply Names, starting script mark, ipk application process title and configuration
At least one of path page web.
Certainly, a kind of storage medium comprising computer executable instructions, computer provided by the embodiment of the present invention
The method operation that executable instruction is not limited to the described above, can also be performed provided by any embodiment of the invention be based on
The relevant operation of openwrt system administration ipk application.
By the description above with respect to embodiment, it is apparent to those skilled in the art that, the present invention
It can be realized by software and required common hardware, naturally it is also possible to which by hardware realization, but in many cases, the former is more
Good embodiment.Based on this understanding, technical solution of the present invention substantially in other words contributes to the prior art
Part can be embodied in the form of software products, which can store in computer readable storage medium
In, floppy disk, read-only memory (Read-Only Memory, ROM), random access memory (Random such as computer
Access Memory, RAM), flash memory (FLASH), hard disk or CD etc., including some instructions are with so that a computer is set
Standby (can be personal computer, storage medium or the network equipment etc.) executes described in each embodiment of the present invention.
Note that the above is only a better embodiment of the present invention and the applied technical principle.It will be appreciated by those skilled in the art that
The invention is not limited to the specific embodiments described herein, be able to carry out for a person skilled in the art it is various it is apparent variation,
It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out by above embodiments to the present invention
It is described in further detail, but the present invention is not limited to the above embodiments only, without departing from the inventive concept, also
It may include more other equivalent embodiments, and the scope of the invention is determined by the scope of the appended claims.
Claims (10)
1. a kind of method based on openwrt system administration ipk application characterized by comprising
Corresponding ipk application installation package is downloaded from application server according to downloading instruction;
When the installation ipk from the file header of the ipk application installation package in application, obtain the pre-set and ipk
It saves using matched attribute information, and by the attribute information to configuration file;
Ipk application is managed according to the attribute information;
Wherein, the attribute information includes ipk Apply Names, starting script mark, ipk application process title and the configuration page
At least one of path web.
2. the method according to claim 1, wherein when the attribute information includes ipk Apply Names and opens
It is described that ipk application is managed according to the attribute information when dynamic script mark, comprising:
When receiving the instruction for starting the ipk application operation, from installation file catalogue corresponding with the ipk Apply Names
Under find and the starting script identifies matched starting script;
Start the starting script, so that ipk application starting operation.
3. the method according to claim 1, wherein when the attribute information includes ipk Apply Names and ipk
It is described that ipk application is managed according to the attribute information when application process title, comprising:
Before ipk application starting operation, by described in the ipk Apply Names and the detection of ipk application process title
Whether ipk application has run, and reruns to avoid ipk application;Alternatively,
When being configured to ipk application, by described in the ipk Apply Names and the detection of ipk application process title
Whether ipk application has run, and shows starting application according to operating status or close the button of application;Alternatively,
When receiving the unloading ipk in application, compulsory withdrawal process corresponding with the ipk application process title, and delete
Installation file catalogue corresponding with the ipk Apply Names.
4. the method according to claim 1, wherein when the attribute information include configuration the path the page web when,
It is described that ipk application is managed according to the attribute information, comprising:
According to configuration-direct, based on the configuration path the page web display configuration page.
5. method according to claim 1-4, which is characterized in that further include:
Judge whether the ipk application meets preset condition;
When ipk application meets preset condition, ipk application is packaged based on setting rule, generates ipk application
Installation kit;
The ipk application installation package is uploaded to the application server.
6. according to the method described in claim 5, it is characterized in that, described judge whether ipk application meets preset condition,
Include:
The ipk is applied and is previously run on the intelligent router based on openwrt system;
If the memory and cpu occupancy of the ipk application are respectively less than given threshold, it is determined that the ipk application meets default
Condition.
7. according to the method described in claim 5, it is characterized in that, being based on setting when ipk application meets preset condition
Rule is packaged ipk application, generates ipk application installation package, comprising:
Setting generates ipk with the ipk using matched attribute information in the file header for the ipk application for meeting preset condition
Application installation package.
8. a kind of device based on openwrt system administration ipk application, which is characterized in that described device includes:
Download module, for downloading corresponding ipk application installation package from application server according to downloading instruction;
Preserving module, for being set in advance as the installation ipk in application, being obtained from the file header of the ipk application installation package
That sets applies matched attribute information with the ipk, and the attribute information is saved to configuration file;
Management module, for being managed according to the attribute information to ipk application;
Wherein, the attribute information includes ipk Apply Names, starting script mark, ipk application process title and the configuration page
At least one of path web.
9. a kind of electronic equipment including memory, processor and stores the calculating that can be run on a memory and on a processor
Machine program, which is characterized in that the processor is realized as described in any one of claim 1-7 when executing the computer program
Based on openwrt system administration ipk application method.
10. a kind of storage medium comprising computer executable instructions, the computer executable instructions are by computer disposal
It is realized when device executes such as the method for any of claims 1-7 based on openwrt system administration ipk application.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810820301.7A CN108958845B (en) | 2018-07-24 | 2018-07-24 | Method and device for managing ipk application based on openwrt system and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810820301.7A CN108958845B (en) | 2018-07-24 | 2018-07-24 | Method and device for managing ipk application based on openwrt system and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108958845A true CN108958845A (en) | 2018-12-07 |
CN108958845B CN108958845B (en) | 2021-07-06 |
Family
ID=64463678
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810820301.7A Active CN108958845B (en) | 2018-07-24 | 2018-07-24 | Method and device for managing ipk application based on openwrt system and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108958845B (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100318983A1 (en) * | 2009-06-12 | 2010-12-16 | Hon Hai Precision Industry Co., Ltd. | Method for installing patch file |
CN102436388A (en) * | 2011-12-22 | 2012-05-02 | 华为技术有限公司 | Method and device for upgrading software of embedded system |
US20140089563A1 (en) * | 2012-09-27 | 2014-03-27 | Ning Wu | Configuration information backup in memory systems |
CN104166711A (en) * | 2014-08-12 | 2014-11-26 | 小米科技有限责任公司 | Method and device for controlling router plug-in |
CN104750465A (en) * | 2013-12-27 | 2015-07-01 | 中国科学院沈阳自动化研究所 | Android based intelligent router |
CN105657046A (en) * | 2016-02-24 | 2016-06-08 | 中国科学技术大学 | Method for injecting advertisements based on Openwrt router |
CN105791135A (en) * | 2014-12-23 | 2016-07-20 | 北京奇虎科技有限公司 | Method for providing intelligent routing application and intelligent router |
-
2018
- 2018-07-24 CN CN201810820301.7A patent/CN108958845B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100318983A1 (en) * | 2009-06-12 | 2010-12-16 | Hon Hai Precision Industry Co., Ltd. | Method for installing patch file |
CN102436388A (en) * | 2011-12-22 | 2012-05-02 | 华为技术有限公司 | Method and device for upgrading software of embedded system |
US20140089563A1 (en) * | 2012-09-27 | 2014-03-27 | Ning Wu | Configuration information backup in memory systems |
CN104750465A (en) * | 2013-12-27 | 2015-07-01 | 中国科学院沈阳自动化研究所 | Android based intelligent router |
CN104166711A (en) * | 2014-08-12 | 2014-11-26 | 小米科技有限责任公司 | Method and device for controlling router plug-in |
CN105791135A (en) * | 2014-12-23 | 2016-07-20 | 北京奇虎科技有限公司 | Method for providing intelligent routing application and intelligent router |
CN105657046A (en) * | 2016-02-24 | 2016-06-08 | 中国科学技术大学 | Method for injecting advertisements based on Openwrt router |
Also Published As
Publication number | Publication date |
---|---|
CN108958845B (en) | 2021-07-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105677477B (en) | Method and device for optimizing application program resources and electronic equipment | |
CN102355667B (en) | Application program network connection control method and system in mobile intelligent terminal system | |
CN107832100B (en) | APK plug-in loading method and terminal thereof | |
CN105824657B (en) | A kind of method and mobile terminal for showing application program | |
CN102609267B (en) | Plug-in unit management method based on Android browser and system therefor | |
WO2020206691A1 (en) | Application processing method and apparatus, storage medium, and electronic device | |
CN101576829B (en) | Trusteeship method and system for application process in embedded linux system | |
CN113381944B (en) | System current limiting method, apparatus, electronic device, medium, and program product | |
CN108363528A (en) | Startup method, apparatus, storage medium and the electronic equipment of five application page | |
WO2011060735A1 (en) | Method,device and system for invoking widget | |
CN103870303A (en) | Method and device for reducing size of software installation package | |
CN109812931A (en) | A kind of humidifying controlling method, device, humidifier and readable storage medium storing program for executing | |
CN104267997B (en) | The startup method and terminal device of application software in a kind of terminal device | |
CN109376015A (en) | Solution and system are blocked in log for task scheduling system | |
CN109582385A (en) | Application program launching method and device, storage medium and electronic equipment | |
WO2019024646A1 (en) | Application management and control method, apparatus, and electronic device | |
CN107450952B (en) | Using management-control method, device, storage medium and electronic equipment | |
CN108334330B (en) | Application unloading method and device, storage medium and electronic equipment | |
CN103092663A (en) | Method for installing application program in terminal and device | |
CN110442819A (en) | Data processing method, device, storage medium and terminal | |
CN105302702A (en) | Method and apparatus for testing performance of terminal | |
CN106484755A (en) | The method of asynchronous quick loading video thumbnails | |
CN113542256A (en) | Method, device, equipment and storage medium for updating login credentials in client | |
CN108958845A (en) | A kind of method, apparatus and electronic equipment based on openwrt system administration ipk application | |
CN116361106A (en) | Log processing method and device, electronic equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |