cleaned up dmenu.bin

This commit is contained in:
Shaun Inman 2023-01-18 21:51:07 -05:00
parent 5e8dc211a3
commit 35626e7689

View file

@ -27,11 +27,21 @@ fi
ROOTFS_IMAGE=$SYSTEM_PATH/rootfs.img ROOTFS_IMAGE=$SYSTEM_PATH/rootfs.img
if [ ! -f $ROOTFS_IMAGE ]; then if [ ! -f $ROOTFS_IMAGE ]; then
# fallback to stock demenu.bin # fallback to stock demenu.bin based on dmenu_ln
# TODO: embed dmenu_ln loop here ACT="/tmp/.next"
/mnt/vendor/bin/dmenu.bin CMD="/mnt/vendor/bin/dmenu.bin"
# reboot -p touch "$ACT"
exit while [ -f $CMD ]; do
if $CMD; then
if [ -f "$ACT" ]; then
if ! sh $ACT; then
echo
fi
rm -f "$ACT"
fi
fi
done
sync && reboot -p
fi fi
ROOTFS_MOUNTPOINT=/cfw ROOTFS_MOUNTPOINT=/cfw