Skip to content

Commit 49cf4c5

Browse files
committed
Merge branch 'future3/develop' into future3/feature/installation
2 parents 22ef685 + 6f09764 commit 49cf4c5

File tree

1 file changed

+26
-12
lines changed

1 file changed

+26
-12
lines changed

installation/routines/customize_options.sh

+26-12
Original file line numberDiff line numberDiff line change
@@ -208,25 +208,39 @@ Would you like to install the Web App? [Y/n]"
208208
}
209209

210210
_option_kiosk_mode() {
211-
# ENABLE_KIOSK_MODE
212-
clear_c
213-
print_c "----------------------- KIOSK MODE ----------------------
211+
# ENABLE_KIOSK_MODE
212+
clear_c
213+
print_c "----------------------- KIOSK MODE ----------------------"
214+
if [[ $(get_architecture) == "armv6" ]]; then
215+
216+
print_c "
217+
Due to limited resources the kiosk mode is not supported
218+
on Raspberry Pi 1 or Zero 1 ('ARMv6' models).
219+
Kiosk mode will not be installed.
220+
221+
Press enter to continue."
222+
read
223+
ENABLE_KIOSK_MODE=false
224+
else
214225

226+
print_c "
215227
If you have a screen attached to your RPi,
216228
this will launch the Web App right after boot.
217229
It will only install the necessary xserver dependencies
218230
and not the entire RPi desktop environment.
219231
220232
Would you like to enable the Kiosk Mode? [y/N]"
221-
read -r response
222-
case "$response" in
223-
[yY][eE][sS]|[yY])
224-
ENABLE_KIOSK_MODE=true
225-
;;
226-
*)
227-
;;
228-
esac
229-
log "ENABLE_KIOSK_MODE=${ENABLE_KIOSK_MODE}"
233+
read -r response
234+
case "$response" in
235+
[yY][eE][sS]|[yY])
236+
ENABLE_KIOSK_MODE=true
237+
;;
238+
*)
239+
;;
240+
esac
241+
fi
242+
243+
log "ENABLE_KIOSK_MODE=${ENABLE_KIOSK_MODE}"
230244
}
231245

232246
_options_update_raspi_os() {

0 commit comments

Comments
 (0)