Skip to content

Commit ce93854

Browse files
Fix broken on-boot examples (#628)
Co-authored-by: John Dorman <427295+boostchicken@users.noreply.github.com>
1 parent 61e2930 commit ce93854

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

on-boot-script-2.x/examples/udm-files/on_boot.d/15-add-github-ssh-keys.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
#!/bin/bash
22

33
# Get DataDir location
4-
DATA_DIR="/data"case "$(ubnt-device-info firmware || true)" in
4+
DATA_DIR="/data"
5+
case "$(ubnt-device-info firmware || true)" in
56
1*)
67
DATA_DIR="/mnt/data"
78
;;

on-boot-script-2.x/examples/udm-files/on_boot.d/15-add-root-ssh-keys.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#!/bin/bash
22
# Get DataDir location
33
DATA_DIR="/data"
4-
54
case "$(ubnt-device-info firmware || true)" in
65
1*)
76
DATA_DIR="/mnt/data"

on-boot-script-2.x/examples/udm-files/on_boot.d/15-add-ssh-known-hosts.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/bin/bash
22
# Get DataDir location
3-
DATA_DIR="/data"case "$(ubnt-device-info firmware || true)" in
3+
DATA_DIR="/data"
4+
case "$(ubnt-device-info firmware || true)" in
45
1*)
56
DATA_DIR="/mnt/data"
67
;;

zerotier-one/20-zerotier.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/bin/bash
22
# Get DataDir location
3-
DATA_DIR="/data"case "$(ubnt-device-info firmware || true)" in
3+
DATA_DIR="/data"
4+
case "$(ubnt-device-info firmware || true)" in
45
1*)
56
DATA_DIR="/mnt/data"
67
;;

0 commit comments

Comments
 (0)