Commit acee8b3 1 parent dafb6f6 commit acee8b3 Copy full SHA for acee8b3
File tree 6 files changed +37
-1
lines changed
6 files changed +37
-1
lines changed Original file line number Diff line number Diff line change @@ -99,6 +99,14 @@ is_ubuntu_arm() {
99
99
fi
100
100
}
101
101
102
+ is_armbian () {
103
+ if grep -q " Armbian" /etc/os-release; then
104
+ echo " 1"
105
+ else
106
+ echo " 0"
107
+ fi
108
+ }
109
+
102
110
# ## Get avail mem
103
111
get_avail_mem () {
104
112
grep " MemTotal" /proc/meminfo | awk ' {print $2}'
@@ -136,7 +144,8 @@ clone_cstreamer() {
136
144
[[ -n " ${CROWSNEST_UNATTENDED} " ]] || CROWSNEST_UNATTENDED=" 0"
137
145
if { [[ " $( is_raspberry_pi) " = " 0" ]] ||
138
146
[[ " $( is_pi5) " = " 1" ]] ||
139
- [[ " $( is_ubuntu_arm) " = " 1" ]]; } &&
147
+ [[ " $( is_ubuntu_arm) " = " 1" ]] ||
148
+ [[ " $( is_armbian) " = " 1" ]]; } &&
140
149
[[ " ${CROWSNEST_UNATTENDED} " = " 0" ]]; then
141
150
printf " Device is not supported! Cloning camera-streamer ... [SKIPPED]\n"
142
151
return
Original file line number Diff line number Diff line change @@ -97,6 +97,7 @@ function check_apps {
97
97
# # Avoid dependency check if non rpi sbc
98
98
if [[ " $( is_raspberry_pi) " = " 1" ]] &&
99
99
[[ " $( is_ubuntu_arm) " = " 0" ]] &&
100
+ [[ " $( is_armbian) " = " 0" ]] &&
100
101
[[ " $( is_pi5) " = " 0" ]]; then
101
102
if [[ -x " ${BASE_CN_PATH} /${cstreamer} " ]]; then
102
103
log_msg " Dependency: '${cstreamer##*/ } ' found in ${cstreamer} ."
Original file line number Diff line number Diff line change @@ -185,3 +185,11 @@ is_ubuntu_arm() {
185
185
echo " 0"
186
186
fi
187
187
}
188
+
189
+ is_armbian () {
190
+ if grep -q " Armbian" /etc/os-release; then
191
+ echo " 1"
192
+ else
193
+ echo " 0"
194
+ fi
195
+ }
Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ function construct_streamer {
29
29
[mM]ulti | camera-streamer)
30
30
if [[ " $( is_raspberry_pi) " = " 1" ]] &&
31
31
[[ " $( is_ubuntu_arm) " = " 0" ]] &&
32
+ [[ " $( is_armbian) " = " 0" ]] &&
32
33
[[ " $( is_pi5) " = " 0" ]]; then
33
34
MULTI_INSTANCES+=( " ${cams} " )
34
35
else
Original file line number Diff line number Diff line change @@ -44,6 +44,7 @@ versioncontrol() {
44
44
local cur_ver avail_ver
45
45
if [[ " $( is_raspberry_pi) " = " 1" ]] &&
46
46
[[ " $( is_ubuntu_arm) " = " 0" ]] &&
47
+ [[ " $( is_armbian) " = " 0" ]] &&
47
48
[[ " $( is_pi5) " = " 0" ]]; then
48
49
pushd " ${BASE_CN_PATH} " /bin/camera-streamer & > /dev/null || exit 1
49
50
avail_ver=" ($( git describe --tags --always) )"
Original file line number Diff line number Diff line change @@ -85,6 +85,14 @@ is_ubuntu_arm() {
85
85
fi
86
86
}
87
87
88
+ is_armbian () {
89
+ if grep -q " Armbian" /etc/os-release; then
90
+ echo " 1"
91
+ else
92
+ echo " 0"
93
+ fi
94
+ }
95
+
88
96
is_speederpad () {
89
97
if grep -q " Ubuntu 20.04." /etc/os-release &&
90
98
[[ " $( uname -rm) " = " 4.9.191 aarch64" ]]; then
@@ -129,6 +137,14 @@ shallow_cs_dependencies_check() {
129
137
fi
130
138
status_msg " Checking if device is not running Ubuntu ..." " 0"
131
139
140
+ msg " Checking if device is not running Armbian ...\n"
141
+ if [[ " $( is_armbian) " = " 1" ]]; then
142
+ status_msg " Checking if device is not running Armbian ..." " 3"
143
+ msg " This device is running Armbian therefore camera-streeamer cannot be installed ..."
144
+ return 1
145
+ fi
146
+ status_msg " Checking if device is not running Armbian ..." " 0"
147
+
132
148
msg " Checking for required kernel module ...\n"
133
149
SHALLOW_CHECK_MODULESLIST=" bcm2835_codec"
134
150
if [[ " $( test_load_module ${SHALLOW_CHECK_MODULESLIST} ) " = " 0" ]]; then
You can’t perform that action at this time.
0 commit comments