mirror of
https://github.com/FunKey-Project/FunKey-OS.git
synced 2025-12-12 15:48:51 +01:00
fixed little regression when handling previous prevent_launcher file
This commit is contained in:
parent
b2847c1cd4
commit
bfed99494e
@ -21,7 +21,7 @@ fi
|
|||||||
|
|
||||||
# Convert old prevent launcher file to new frontend disable file
|
# Convert old prevent launcher file to new frontend disable file
|
||||||
if [ -f "${PREVENT_LAUNCHER_FILE}" ]; then
|
if [ -f "${PREVENT_LAUNCHER_FILE}" ]; then
|
||||||
mv "${PREVENT_LAUNCHER_FILE}" "{DISABLE_FRONTEND_FILE}"
|
mv "${PREVENT_LAUNCHER_FILE}" "${DISABLE_FRONTEND_FILE}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
usage() {
|
usage() {
|
||||||
@ -71,7 +71,7 @@ init_frontend() {
|
|||||||
while true; do
|
while true; do
|
||||||
|
|
||||||
# Check if frontend disable file is present
|
# Check if frontend disable file is present
|
||||||
if [ -f "${DISBALE_FRONTEND_FILE}" ]; then
|
if [ -f "${DISABLE_FRONTEND_FILE}" ]; then
|
||||||
echo "${DISABLE_FRONTEND_FILE} file found, not starting frontend"
|
echo "${DISABLE_FRONTEND_FILE} file found, not starting frontend"
|
||||||
sleep 5
|
sleep 5
|
||||||
else
|
else
|
||||||
@ -80,6 +80,7 @@ init_frontend() {
|
|||||||
umount /opk >/dev/null 2>&1
|
umount /opk >/dev/null 2>&1
|
||||||
rm -f "${LAST_OPK_FILE}"
|
rm -f "${LAST_OPK_FILE}"
|
||||||
|
|
||||||
|
# Launch selected frontend
|
||||||
local frontend="$(get_frontend)"
|
local frontend="$(get_frontend)"
|
||||||
case "${frontend}" in
|
case "${frontend}" in
|
||||||
gmenu2x|retrofe)
|
gmenu2x|retrofe)
|
||||||
|
|||||||
@ -20,7 +20,7 @@ if [ ${#} -lt 1 ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
case ${1} in
|
case ${1} in
|
||||||
load)
|
load)
|
||||||
if [ ${#} -ne 1 ]; then
|
if [ ${#} -ne 1 ]; then
|
||||||
usage
|
usage
|
||||||
fi
|
fi
|
||||||
@ -52,7 +52,7 @@ case ${1} in
|
|||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
|
||||||
save)
|
save)
|
||||||
if [ ${#} -lt 2 ]; then
|
if [ ${#} -lt 2 ]; then
|
||||||
usage
|
usage
|
||||||
fi
|
fi
|
||||||
@ -80,7 +80,7 @@ EOF
|
|||||||
exec powerdown now
|
exec powerdown now
|
||||||
;;
|
;;
|
||||||
|
|
||||||
*)
|
*)
|
||||||
usage
|
usage
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user