Skip to content

Commit

Permalink
Add list of user-installed packages to the output; Update README and …
Browse files Browse the repository at this point in the history
…sample output file
  • Loading branch information
richb-hanover committed Dec 9, 2018
1 parent edb4c6a commit 2179043
Show file tree
Hide file tree
Showing 2 changed files with 1,056 additions and 808 deletions.
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ OpenWrtScripts
This is a set of scripts (sometimes also called "Openscripts") that report, configure and measure (and improve) latency in home routers (and everywhere else!)
These scripts work equally well for both [LEDE](https://lede-project.org) and [OpenWrt](https://openwrt.org) and include:

* [getstats.sh](#getstatssh) - a script to collect troubleshooting information that helps us diagnose problems in the OpenWrt distribution.
* [getstats.sh](#getstatssh) - a script to collect troubleshooting information that helps to diagnose problems in the OpenWrt distribution.

* [opkgscript.sh](#opkgscriptsh) - a script to save the list of
currently-installed packages (say, before a sysupgrade),
Expand Down Expand Up @@ -34,12 +34,14 @@ The `getstats.sh` script helps diagnose problems with OpenWrt.
If you report a problem, it is always helpful to include the output of this script.

`getstats.sh` executes a built-in set of commands and writes the collected output to `/tmp/openwrtstats.txt`.
The script also executes commands passed as arguments on the command line.
The script also executes commands passed as arguments on the command line.
It also displays a list of user-installed opkg packages - that is those not installed by default.
In the example below, the output would contain results from the standard set of commands plus the two additional arguments:

**Example:** `sh getstats.sh "ls /usr/lib" "ls -al /etc/config"`
**Usage:** `sh getstats.sh "ls /usr/lib" "ls -al /etc/config"`

**To install and run this script:** The script is self-contained, and can be placed in any directory. Read the top of the [getstats.sh](./getstats.sh) file for a simple procedure.
**To install and run this script:** The script is self-contained, and can be placed in any directory.
Read the top of the [getstats.sh](./getstats.sh) file for a simple procedure for using the script.

**Sample output file:** See a sample output file - [openwrtstats.txt](./sample_output/openwrtstats.txt)

Expand All @@ -53,7 +55,7 @@ By default, the `write` command saves the list of installed packages in
`install` command reads the file, to restore that set of packages.
Cloned from Malte Forkel's [original script.](https://forum.openwrt.org/viewtopic.php?pid=194478#p194478)

**Example:**
**Usage:**

`sh opkgscript.sh write` _use before sysupgrade to save the current set of packages_

Expand Down
Loading

0 comments on commit 2179043

Please sign in to comment.