jefflunt / glint-box

(retired) This was fun - but seriously, try Lakka instead (http://www.lakka.tv/)
MIT License
21 stars 5 forks source link

(0.1.0-beta) No roms on boot #33

Closed brandtdaniels closed 11 years ago

brandtdaniels commented 11 years ago

Enhancement:

The text says 'Add ROMs via USB stick' on the top in red. I think the text should be centered vertically and be better descriptive of how to add roms. Also something other than a USB stick could be used such as a hard drive. I would suggest the text be something like 'Please insert USB device containing ROM images'

Bug:

After ES restarted and the list of ROMs were displayed. There was still the red text at the top asking to add roms.

brandtdaniels commented 11 years ago

There is a bug in copy-roms.sh

sudo umount /mnt/removeable

there is no such mount-point.

it should be

sudo umount $SOURCE
brandtdaniels commented 11 years ago

Updated copy-roms.sh

!/bin/bash

export HOME="/home/pi"

SOURCE="/mnt/usbdisk" TARGET="/home/pi/roms" SYSLOG="/var/log/syslog"

if [ -d "$TARGET" ]; then rm -rf $TARGET/* fi if [ -d "$SOURCE" ]; then

Stop glint-es, clear console, and start ROM file copy

find $SOURCE -type f ( -name ".nes" -o -name ".NES" -o -name ".Nes" ) -a ( ! -regex './..*' ) -exec cp {} $TARGET \; sudo chown -R pi:pi $HOME/roms echo "Copied ROMs to $TARGET" >> $SYSLOG

Unmount USB stick and restart glint-es

sudo umount $SOURCE killall glint-es && /home/pi/glint-es/glint-es & else echo "ERR: $SOURCE does not exist." exit 1 fi

exit 0

jefflunt commented 11 years ago

Tagged a new release v0.1.1-beta with this bug fix.

Opened a separate case regarding the red text - #37. Let's keep issues as fine-grained and self-contained as possible. This case, as originally submitted, is actually two cases.