Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions launch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -195,33 +195,33 @@ main() {
allowed_platforms="tg5040 rg35xxplus"
if ! echo "$allowed_platforms" | grep -q "$PLATFORM"; then
show_message "$PLATFORM is not a supported platform" 2
exit 1
return 1
fi

if [ ! -f "$progdir/bin/minui-keyboard-$PLATFORM" ]; then
show_message "$progdir/bin/minui-keyboard-$PLATFORM not found" 2
exit 1
return 1
fi
if [ ! -f "$progdir/bin/minui-list-$PLATFORM" ]; then
show_message "$progdir/bin/minui-list-$PLATFORM not found" 2
exit 1
return 1
fi

if ! cd "$progdir/bin"; then
show_message "Failed to cd to $progdir/bin" 2
exit 1
return 1
fi
chmod +x *
if ! cd "$progdir"; then
show_message "Failed to cd to $progdir" 2
exit 1
return 1
fi

if [ "$PLATFORM" = "rg35xxplus" ]; then
RGXX_MODEL="$(strings /mnt/vendor/bin/dmenu.bin | grep ^RG)"
if [ "$RGXX_MODEL" = "RG28xx" ]; then
show_message "Wifi not supported on RG28XX" 2
exit 1
return 1
fi
fi

Expand Down
Loading