0
0
mirror of https://github.com/libretro/Lakka-LibreELEC.git synced 2025-01-19 10:42:06 +00:00

11 lines
347 B
Bash
Executable File

#!/bin/sh
# If read-only then mount writeable, and restore read-only on exit
# This means we don't restore read-only if /flash is already writeable
if [ -n "$(grep " /flash " /proc/mounts | grep "[[:space:]]ro[[:space:],]")" ]; then
trap "mount -o remount,ro /flash" EXIT
mount -o remount,rw /flash
fi
sh /usr/bin/.rpi-eeprom-update.real $@