788a398aab
* Since JELOS creates the games directory structure it is possible that the overlay will hide games if you switch targets as it will consider them removed. Delete the empty directories and reboot to resolve. * Ex: find /storage/games-internal -type d -empty -delete && find /storage/games-external -type d -empty -delete && reboot * Merged storage can now be disabled persistently. * A new directory structure is required to enable switching: * /storage/games-internal/roms * /storage/games-external/roms * The target /storage/roms has not changed. * Lowers clocks to powersave for RK3566 devices.
21 lines
701 B
Text
21 lines
701 B
Text
# dont run in "installer" mode
|
|
IMPORT{cmdline}="installer"
|
|
ENV{installer}=="1", GOTO="exit"
|
|
|
|
SUBSYSTEM!="block", KERNEL!="mmc*", GOTO="exit"
|
|
|
|
# check for special partitions we dont want mount
|
|
IMPORT{builtin}="blkid"
|
|
ENV{ID_FS_LABEL}=="EFI|BOOT|Recovery|RECOVERY|SETTINGS|boot|root0|share0", GOTO="exit"
|
|
|
|
# /dev/mmc* partitions/disk and filesystems only
|
|
KERNEL=="mmc*", ENV{DEVTYPE}=="partition|disk", ENV{ID_FS_USAGE}=="filesystem", GOTO="harddisk"
|
|
GOTO="exit"
|
|
|
|
# mount or umount for hdds
|
|
LABEL="harddisk"
|
|
ACTION=="add", PROGRAM="/usr/bin/sh -c '/usr/bin/grep -E ^/dev/%k\ /proc/mounts || true'", RESULT=="", RUN+="/usr/bin/systemctl restart jelos-automount.service"
|
|
GOTO="exit"
|
|
|
|
# Exit
|
|
LABEL="exit"
|