Skip to content

Commit e5269cf

Browse files
authored
4.0 support (#608)
1 parent 549af97 commit e5269cf

File tree

42 files changed

+229
-334
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+229
-334
lines changed

att-ipv6/10-att-ipv6.sh

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,19 @@
1-
#! /bin/sh
1+
#! /bin/bash
22
set -eo pipefail
33

44
# Get DataDir location
55
DATA_DIR="/data"
66
case "$(ubnt-device-info firmware || true)" in
77
1*)
8-
DATA_DIR="/mnt/data"
9-
;;
10-
2*)
11-
DATA_DIR="/data"
12-
;;
13-
3*)
14-
DATA_DIR="/data"
15-
;;
8+
DATA_DIR="/mnt/data"
9+
;;
10+
2* | 3* | 4*)
11+
DATA_DIR="/data"
12+
;;
1613
*)
17-
echo "ERROR: No persistent storage found." 1>&2
18-
exit 1
19-
;;
14+
echo "ERROR: No persistent storage found." 1>&2
15+
exit 1
16+
;;
2017
esac
2118
# Check if the directory exists
2219
if [ ! -d "$DATA_DIR/att-ipv6" ]; then

cloudflare-ddns/on_boot.d/30-cloudflare-ddns.sh

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,15 @@ CONTAINER=cloudflare-ddns
44
DATA_DIR="/data"
55
case "$(ubnt-device-info firmware || true)" in
66
1*)
7-
DATA_DIR="/mnt/data"
8-
;;
9-
2*)
10-
DATA_DIR="/data"
11-
;;
12-
3*)
13-
DATA_DIR="/data"
14-
;;
7+
DATA_DIR="/mnt/data"
8+
;;
9+
2* | 3* | 4*)
10+
DATA_DIR="/data"
11+
;;
1512
*)
16-
echo "ERROR: No persistent storage found." 1>&2
17-
exit 1
18-
;;
13+
echo "ERROR: No persistent storage found." 1>&2
14+
exit 1
15+
;;
1916
esac
2017
# Check if the directory exists
2118
if [ ! -d "$DATA_DIR/cloudflare-ddns" ]; then

dns-common/on_boot.d/10-dns.sh

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,16 @@
33
DATA_DIR="/data"
44
case "$(ubnt-device-info firmware || true)" in
55
1*)
6-
DATA_DIR="/mnt/data"
7-
;;
8-
2*)
9-
DATA_DIR="/data"
10-
;;
11-
3*)
12-
DATA_DIR="/data"
13-
;;
6+
DATA_DIR="/mnt/data"
7+
;;
8+
2* | 3* | 4*)
9+
DATA_DIR="/data"
10+
;;
1411
*)
15-
echo "ERROR: No persistent storage found." 1>&2
16-
exit 1
17-
;;
18-
esac
12+
echo "ERROR: No persistent storage found." 1>&2
13+
exit 1
14+
;;
15+
esac
1916
## configuration variables:
2017
VLAN=5
2118
IPV4_IP="10.0.5.3"

haproxy/50-haproxy.sh

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,16 @@ CONTAINER=haproxy
44
DATA_DIR="/data"
55
case "$(ubnt-device-info firmware || true)" in
66
1*)
7-
DATA_DIR="/mnt/data"
8-
;;
9-
2*)
10-
DATA_DIR="/data"
11-
;;
12-
3*)
13-
DATA_DIR="/data"
14-
;;
7+
DATA_DIR="/mnt/data"
8+
;;
9+
2* | 3* | 4*)
10+
DATA_DIR="/data"
11+
;;
1512
*)
16-
echo "ERROR: No persistent storage found." 1>&2
17-
exit 1
18-
;;
13+
echo "ERROR: No persistent storage found." 1>&2
14+
exit 1
15+
;;
1916
esac
20-
2117
# Check if the directory exists
2218
if [ ! -d "${DATA_DIR}/haproxy" ]; then
2319
# If it does not exist, create the directory

haproxy/update-haproxy.sh

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,16 @@ IMAGE=haproxy:latest
33
DATA_DIR="/data"
44
case "$(ubnt-device-info firmware || true)" in
55
1*)
6-
DATA_DIR="/mnt/data"
7-
;;
8-
2*)
9-
DATA_DIR="/data"
10-
;;
11-
3*)
12-
DATA_DIR="/data"
13-
;;
6+
DATA_DIR="/mnt/data"
7+
;;
8+
2* | 3* | 4*)
9+
DATA_DIR="/data"
10+
;;
1411
*)
15-
echo "ERROR: No persistent storage found." 1>&2
16-
exit 1
17-
;;
12+
echo "ERROR: No persistent storage found." 1>&2
13+
exit 1
14+
;;
1815
esac
19-
2016
podman pull $IMAGE
2117
podman stop haproxy
2218
podman rm haproxy

hdhomerun/on_boot.d/99-hdhomerun.sh

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,7 @@ case "$(ubnt-device-info firmware || true)" in
88
1*)
99
DATA_DIR="/mnt/data"
1010
;;
11-
2*)
12-
DATA_DIR="/data"
13-
;;
14-
3*)
11+
2* | 3* | 4*)
1512
DATA_DIR="/data"
1613
;;
1714
*)

homebridge/on_boot.d/25-homebridge.sh

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,16 @@ CONTAINER=homebridge
55
DATA_DIR="/data"
66
case "$(ubnt-device-info firmware || true)" in
77
1*)
8-
DATA_DIR="/mnt/data"
9-
;;
10-
2*)
11-
DATA_DIR="/data"
12-
;;
13-
3*)
14-
DATA_DIR="/data"
15-
;;
8+
DATA_DIR="/mnt/data"
9+
;;
10+
2* | 3* | 4*)
11+
DATA_DIR="/data"
12+
;;
1613
*)
17-
echo "ERROR: No persistent storage found." 1>&2
18-
exit 1
19-
;;
20-
esac
21-
14+
echo "ERROR: No persistent storage found." 1>&2
15+
exit 1
16+
;;
17+
esac
2218
## network configuration and startup:
2319
CNI_PATH=${DATA_DIR}/podman/cni
2420
# Check if the directory exists

ipt-enable-logs/on_boot.d/30-ipt-enable-logs-launch.sh

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,16 @@
44
DATA_DIR="/data"
55
case "$(ubnt-device-info firmware || true)" in
66
1*)
7-
DATA_DIR="/mnt/data"
8-
;;
9-
2*)
10-
DATA_DIR="/data"
11-
;;
12-
3*)
13-
DATA_DIR="/data"
14-
;;
7+
DATA_DIR="/mnt/data"
8+
;;
9+
2* | 3* | 4*)
10+
DATA_DIR="/data"
11+
;;
1512
*)
16-
echo "ERROR: No persistent storage found." 1>&2
17-
exit 1
18-
;;
13+
echo "ERROR: No persistent storage found." 1>&2
14+
exit 1
15+
;;
1916
esac
20-
2117
# Check if the directory exists
2218
if [ ! -d "${DATA_DIR}/scripts" ]; then
2319
# If it does not exist, create the directory

ipt-enable-logs/scripts/ipt-enable-logs.sh

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,7 @@ case "$(ubnt-device-info firmware || true)" in
55
1*)
66
DATA_DIR="/mnt/data"
77
;;
8-
2*)
9-
DATA_DIR="/data"
10-
;;
11-
3*)
8+
2* | 3* | 4*)
129
DATA_DIR="/data"
1310
;;
1411
*)

ipt-enable-logs/scripts/refresh-iptables.sh

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,15 @@
33
DATA_DIR="/data"
44
case "$(ubnt-device-info firmware || true)" in
55
1*)
6-
DATA_DIR="/mnt/data"
7-
;;
8-
2*)
9-
DATA_DIR="/data"
10-
;;
11-
3*)
12-
DATA_DIR="/data"
13-
;;
6+
DATA_DIR="/mnt/data"
7+
;;
8+
2* | 3* | 4*)
9+
DATA_DIR="/data"
10+
;;
1411
*)
15-
echo "ERROR: No persistent storage found." 1>&2
16-
exit 1
17-
;;
12+
echo "ERROR: No persistent storage found." 1>&2
13+
exit 1
14+
;;
1815
esac
1916

2017
# Check if the directory exists

0 commit comments

Comments
 (0)