RecalBox在树莓派上的配置与使用

Recalbox 是一个开源的模拟游戏机系统

开机自动挂载SSD

  • 挂载 / 根分区为可读写 mount -o rw,remount /
  • 新建文件 nano /etc/init.d/S90mount
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    #ssd dev partition
    S=sdb1
    #mount target
    T=/recalbox/share/ssd

    case "$1" in
    start)
    if [ -n "`ls /dev/ | grep ${S}`" ]; then
    mount /dev/${S} ${T}
    fi
    ;;
    stop)
    if [ -n "`mount | grep ${S}`" ]; then
    umount /dev/${S}
    fi
    ;;
    esac