fixed little regression when handling previous prevent_launcher file

This commit is contained in:
Vincent-FK 2021-06-09 00:26:46 +02:00
parent b2847c1cd4
commit bfed99494e
3 changed files with 60 additions and 59 deletions

View File

@ -21,7 +21,7 @@ fi
# Convert old prevent launcher file to new frontend disable file
if [ -f "${PREVENT_LAUNCHER_FILE}" ]; then
mv "${PREVENT_LAUNCHER_FILE}" "{DISABLE_FRONTEND_FILE}"
mv "${PREVENT_LAUNCHER_FILE}" "${DISABLE_FRONTEND_FILE}"
fi
usage() {
@ -71,7 +71,7 @@ init_frontend() {
while true; do
# 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"
sleep 5
else
@ -80,6 +80,7 @@ init_frontend() {
umount /opk >/dev/null 2>&1
rm -f "${LAST_OPK_FILE}"
# Launch selected frontend
local frontend="$(get_frontend)"
case "${frontend}" in
gmenu2x|retrofe)

View File

@ -20,7 +20,7 @@ if [ ${#} -lt 1 ]; then
fi
case ${1} in
load)
load)
if [ ${#} -ne 1 ]; then
usage
fi
@ -52,7 +52,7 @@ case ${1} in
fi
;;
save)
save)
if [ ${#} -lt 2 ]; then
usage
fi
@ -80,7 +80,7 @@ EOF
exec powerdown now
;;
*)
*)
usage
;;
esac