We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5cd9501 commit 2ae4604Copy full SHA for 2ae4604
FunKey/board/funkey/rootfs-overlay/usr/local/sbin/frontend
@@ -71,14 +71,16 @@ init_frontend() {
71
while true; do
72
73
# Check if frontend disable file is present
74
- if [ -f "${DISABLE_FRONTEND_FILE}" ]; then
+ if [ -f "${DISABLE_FRONTEND_FILE}" -o -f "${REBOOTING_FILE}" ]; then
75
echo "${DISABLE_FRONTEND_FILE} file found, not starting frontend"
76
sleep 5
77
else
78
79
# Umount any remaining OPK, if any
80
umount /opk >/dev/null 2>&1
81
- rm -f "${LAST_OPK_FILE}"
+ if [ -r "${LAST_OPK_FILE}" -a ! -f "${REBOOTING_FILE}" ]; then
82
+ rm "${LAST_OPK_FILE}"
83
+ fi
84
85
# Launch selected frontend
86
local frontend="$(get_frontend)"
0 commit comments