Skip to content

Commit ff11872

Browse files
committed
update docs
1 parent 7c1c4f5 commit ff11872

File tree

1 file changed

+10
-21
lines changed

1 file changed

+10
-21
lines changed

OpenWrt/README.md

Lines changed: 10 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
## geoip-shell on OpenWrt
22

3-
Currently geoip-shell fully supports OpenWrt, both with firewall3 + iptables and with firewall4 + nftables, while providing the same user interface and features as on any other Linux system. So usage is the same as described in the main [README.md](/README.md) file, while some parts of the backend (namely persistence implementation), some defaults and the location of the data directory are different.
3+
Currently geoip-shell fully supports OpenWrt, both with firewall3 and with firewall4, both iptables and nftables, while providing the same user interface and features as on any other Linux system. So usage is the same as described in the main [README.md](/README.md) file, while some parts of the backend (namely persistence implementation), some defaults and the location of the data directory are different.
44

55
Installation is possible either via the -install script (as described in the main [README.md](/README.md)), or via a package.
66

7-
geoip-shell packages come in 2 flavors: _geoip-shell_ (for firewall4+nftables OpenWrt systems) and _geoip-shell-iptables_ (for firewall3+iptables OpenWrt systems).
7+
geoip-shell packages come in 2 flavors: _geoip-shell_ (for OpenWrt systems with nftables) and _geoip-shell-iptables_ (for OpenWrt systems with iptables).
88

99
## Download the latest OpenWrt package via the command line
1010
First, connect to you device [via SSH](https://openwrt.org/docs/guide-quick-start/sshadministration).
1111

1212
Next, select the appropriate option below, copy the code and paste in your terminal, then press Enter. The package will be downloaded to `/tmp/`.
1313

14-
<details><summary>IPK for firewall4 + nftables (download with uclient-fetch):</summary>
14+
<details><summary>IPK for OpenWrt with nftables:</summary>
1515

1616
```
1717
link="$(uclient-fetch https://api.github.com/repos/friendly-bits/geoip-shell/releases -O - | sed 's/\\r//g;s/\\n/\n/g' | grep -m1 -oE 'https://github.com/friendly-bits/geoip-shell/releases/download/v[0-9.]+/geoip-shell_[0-9.]+-r[0-9]+\.ipk')"; \
@@ -20,14 +20,7 @@ if [ -n "$filename" ] && cd /tmp/ && uclient-fetch -O "$filename" "$link"; then
2020
```
2121
</details>
2222

23-
<details><summary>IPK for firewall4 + nftables (download with curl):</summary>
24-
25-
```
26-
cd /tmp/ && curl -LO "$(curl -s https://api.github.com/repos/friendly-bits/geoip-shell/releases | grep -m1 -oE 'https://github.com/friendly-bits/geoip-shell/releases/download/v[0-9.]+/geoip-shell_[0-9.]+-r[0-9]+\.ipk')"
27-
```
28-
</details>
29-
30-
<details><summary>IPK for firewall3 + iptables (download with uclient-fetch):</summary>
23+
<details><summary>IPK for OpenWrt with iptables:</summary>
3124

3225
```
3326
link="$(uclient-fetch https://api.github.com/repos/friendly-bits/geoip-shell/releases -O - | sed 's/\\r//g;s/\\n/\n/g' | grep -m1 -oE 'https://github.com/friendly-bits/geoip-shell/releases/download/v[0-9.]+/geoip-shell-iptables_[0-9.]+-r[0-9]+\.ipk')"; \
@@ -36,14 +29,7 @@ if [ -n "$filename" ] && cd /tmp/ && uclient-fetch -O "$filename" "$link"; then
3629
```
3730
</details>
3831

39-
<details><summary>IPK for firewall3 + iptables (download with curl):</summary>
40-
41-
```
42-
cd /tmp/ && curl -LO "$(curl -s https://api.github.com/repos/friendly-bits/geoip-shell/releases | grep -m1 -oE 'https://github.com/friendly-bits/geoip-shell/releases/download/v[0-9.]+/geoip-shell-iptables_[0-9.]+-r[0-9]+\.ipk')"
43-
```
44-
</details>
45-
46-
<details><summary>APK package - for OpenWrt snapshots (download with uclient-fetch):</summary>
32+
<details><summary>APK package for OpenWrt with nftables - for OpenWrt snapshots:</summary>
4733

4834
```
4935
link="$(uclient-fetch https://api.github.com/repos/friendly-bits/geoip-shell/releases -O - | sed 's/\\r//g;s/\\n/\n/g' | grep -m1 -oE 'https://github.com/friendly-bits/geoip-shell/releases/download/v[0-9.]+/geoip-shell_[0-9.]+-r[0-9]+\.apk')"; \
@@ -53,11 +39,14 @@ if [ -n "$filename" ] && cd /tmp/ && uclient-fetch -O "$filename" "$link"; then
5339

5440
</details>
5541

56-
<details><summary>APK package - for OpenWrt snapshots (download with curl):</summary>
42+
<details><summary>APK package for OpenWrt with iptables - for OpenWrt snapshots:</summary>
5743

5844
```
59-
cd /tmp/ && curl -LO "$(curl -s https://api.github.com/repos/friendly-bits/geoip-shell/releases | grep -m1 -oE 'https://github.com/friendly-bits/geoip-shell/releases/download/v[0-9.]+/geoip-shell_[0-9.]+-r[0-9]+\.apk')"
45+
link="$(uclient-fetch https://api.github.com/repos/friendly-bits/geoip-shell/releases -O - | sed 's/\\r//g;s/\\n/\n/g' | grep -m1 -oE 'https://github.com/friendly-bits/geoip-shell/releases/download/v[0-9.]+/geoip-shell-iptables_[0-9.]+-r[0-9]+\.apk')"; \
46+
filename="${link##*/}"; \
47+
if [ -n "$filename" ] && cd /tmp/ && uclient-fetch -O "$filename" "$link"; then echo "File saved as '$filename'."; else echo "Fetch failed. Please download geoip-shell manually."; fi
6048
```
49+
6150
</details>
6251

6352
## Install the package

0 commit comments

Comments
 (0)