#!/bin/bash

sed -i 's/rw/ro/1' /etc/fstab
mount -o remount,ro /