1
0
mirror of https://github.com/libretro/Lakka-LibreELEC.git synced 2024-11-25 09:36:18 +00:00
Lakka-LibreELEC/packages/tools/rpi-eeprom/source/rpi-eeprom-update

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 $@