FunKey-OS/FunKey/board/funkey/rootfs-overlay/usr/local/sbin/ro

10 lines
136 B
Bash
Executable File

#!/bin/sh
# Check that we are in RW
mount | grep -q "ext4 (rw" || exit 1
# Flush and mount in read only
mount / -o remount,ro
exit 0