summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAram Drevekenin <aram@poor.dev>2020-05-23 14:34:26 +0200
committerGitHub <noreply@github.com>2020-05-23 14:34:26 +0200
commitc43a90cdd569b76407e8203bba1ddb4532a49008 (patch)
tree9cc556512ddeb001f3e0419e7cd73a68ca7e6bd2
parent41b5ce787a80c91a4e17870be11f9cfb61791f5d (diff)
docs(readme): rearrange installation instructions
-rw-r--r--README.md25
1 files changed, 14 insertions, 11 deletions
diff --git a/README.md b/README.md
index d230235..1b0c797 100644
--- a/README.md
+++ b/README.md
@@ -43,17 +43,8 @@ sudo dnf copr enable atim/bandwhich -y && sudo dnf install bandwhich
brew install bandwhich
```
-#### OpenWRT
-
-To install `bandwhich` on OpenWRT, you'll need to compile a binary that would fit its processor architecture. This might mean you would have to cross compile if, for example, you're working on an `x86_64` and the OpenWRT is installed on an `arm7`.
-Here is an example of cross compiling in this situation:
-
-- Check the processor architecture of your router by using `uname -m`
-- Clone the bandwhich repository `git clone https://github.com/imsnif/bandwhich`
-- Install `cross` using `cargo install cross`
-- build the `bandwhich` package using `cross build --target armv7-unknown-linux-musleabihf`
-- Copy the binary files from `target/armv7-unknown-linux-musleabihf/debug/bandwhich` to the router using `scp` by running `scp bandwhich root@192.168.1.1:~/` (here, 192.168.1.1 would be the IP address of your router).
-- Finally enter the router using ssh and run the binary directly with `./bandwhich`
+#### Download a prebuilt binary
+If you're on linux, you could also get the generic binary from the releases.
#### Other Linux flavours
@@ -76,6 +67,18 @@ This installs `bandwhich` to `~/.cargo/bin/bandwhich` but you need root privilig
#### Download a prebuilt binary
If you're on linux, you could also get the generic binary from the releases.
+#### OpenWRT
+
+To install `bandwhich` on OpenWRT, you'll need to compile a binary that would fit its processor architecture. This might mean you would have to cross compile if, for example, you're working on an `x86_64` and the OpenWRT is installed on an `arm7`.
+Here is an example of cross compiling in this situation:
+
+- Check the processor architecture of your router by using `uname -m`
+- Clone the bandwhich repository `git clone https://github.com/imsnif/bandwhich`
+- Install `cross` using `cargo install cross`
+- build the `bandwhich` package using `cross build --target armv7-unknown-linux-musleabihf`
+- Copy the binary files from `target/armv7-unknown-linux-musleabihf/debug/bandwhich` to the router using `scp` by running `scp bandwhich root@192.168.1.1:~/` (here, 192.168.1.1 would be the IP address of your router).
+- Finally enter the router using ssh and run the binary directly with `./bandwhich`
+
#### Windows
Unfortunately, windows is not supported at the moment - if you'd like to contribute a windows port, it would be very much welcome.