Skip to content

Commit 2ae4604

Browse files
committed
fixed frontend look cases where lask_opk file could be removed after the instant action SIGUSR1 signal
1 parent 5cd9501 commit 2ae4604

File tree

1 file changed

+4
-2
lines changed
  • FunKey/board/funkey/rootfs-overlay/usr/local/sbin

1 file changed

+4
-2
lines changed

FunKey/board/funkey/rootfs-overlay/usr/local/sbin/frontend

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,14 +71,16 @@ init_frontend() {
7171
while true; do
7272

7373
# Check if frontend disable file is present
74-
if [ -f "${DISABLE_FRONTEND_FILE}" ]; then
74+
if [ -f "${DISABLE_FRONTEND_FILE}" -o -f "${REBOOTING_FILE}" ]; then
7575
echo "${DISABLE_FRONTEND_FILE} file found, not starting frontend"
7676
sleep 5
7777
else
7878

7979
# Umount any remaining OPK, if any
8080
umount /opk >/dev/null 2>&1
81-
rm -f "${LAST_OPK_FILE}"
81+
if [ -r "${LAST_OPK_FILE}" -a ! -f "${REBOOTING_FILE}" ]; then
82+
rm "${LAST_OPK_FILE}"
83+
fi
8284

8385
# Launch selected frontend
8486
local frontend="$(get_frontend)"

0 commit comments

Comments
 (0)