mirror of
https://github.com/MiyooCFW/buildroot.git
synced 2025-09-27 22:24:19 +03:00
[DEFCONFIG/BOARD] Fix permissions, mount rootfs read-only, create swap in firstboot (#66)
* Fix permissions * Enable swap in firstboot, change btrfs commit interval to 5s
This commit is contained in:
@@ -497,6 +497,11 @@ if (dialog --clear --ok-label NO --cancel-label YES --stdout --title " License
|
||||
console_unknown_func
|
||||
safe_poweroff_func
|
||||
fi
|
||||
|
||||
# Format swap parition
|
||||
/sbin/mkswap /dev/mmcblk0p3
|
||||
/sbin/swapon /dev/mmcblk0p3
|
||||
|
||||
mount -o remount,ro "${MOUNTDIR}" | tee -a ${LOG}
|
||||
|
||||
#grep all partitions current size
|
||||
@@ -569,9 +574,6 @@ elif $MIYOO_CONFIG; then
|
||||
fi
|
||||
mount -o remount,ro "${MOUNTDIR}" | tee -a ${LOG}
|
||||
|
||||
echo "fix permsissions" | tee -a ${LOG}
|
||||
chmod -R +x /mnt/ | tee -a ${LOG}
|
||||
|
||||
sync
|
||||
echo "firstboot script finished." | tee -a ${LOG}
|
||||
touch ${HOME}/firstboot.completed
|
||||
|
0
board/miyoo/main/emus/retroarch/retroarch_history.sh
Normal file → Executable file
0
board/miyoo/main/emus/retroarch/retroarch_history.sh
Normal file → Executable file
@@ -15,14 +15,12 @@
|
||||
|
||||
# Startup the system
|
||||
::sysinit:/bin/mount -t proc proc /proc
|
||||
::sysinit:/bin/mount -o remount,ro /
|
||||
::sysinit:/bin/mkdir -p /dev/pts
|
||||
::sysinit:/bin/mkdir -p /dev/shm
|
||||
::sysinit:/bin/mount -a
|
||||
::sysinit:/bin/hostname -F /etc/hostname
|
||||
::sysinit:/bin/mount /dev/mmcblk0p4 /mnt -o discard=async,noatime,nodiratime,exec
|
||||
::sysinit:/bin/mount /dev/mmcblk0p4 /mnt -o commit=5,flushoncommit,noatime,nodiratime,exec
|
||||
::sysinit:/bin/mount /dev/mmcblk0p1 /boot -t vfat -o ro,exec,sync,utf8
|
||||
::sysinit:/sbin/mkswap /dev/mmcblk0p3
|
||||
::sysinit:/sbin/swapon /dev/mmcblk0p3
|
||||
|
||||
# now run any rc scripts
|
||||
|
@@ -28,6 +28,7 @@ if test -d "${BINARIES_DIR}/retroarch";then
|
||||
CORE_SCRIPT="${CORE_NAME}.sh"
|
||||
touch $RA_WDIR/"${CORE_SCRIPT}"
|
||||
echo -e "#!/bin/sh\n/mnt/emus/retroarch/retroarch -L ${CORE_FILE} \"\$1\"" > $RA_WDIR/"${CORE_SCRIPT}"
|
||||
chmod +x $RA_WDIR/"${CORE_SCRIPT}"
|
||||
# RA_LDIR="${BINARIES_DIR}/main/gmenu2x/sections/cores"
|
||||
# CORE_LINK="zblank.${CORE_NAME}.ra"
|
||||
# touch $RA_LDIR/"${CORE_LINK}"
|
||||
|
Reference in New Issue
Block a user