#!/bin/sh mount -o rw,remount /boot file=nofsprotect cd /boot if [ -e ${file} ]; then rm ${file} fi if [ -e ${file} ]; then echo "nofsprotect mode" else echo "fsprotect mode" fi mount -o ro,remount /boot echo "reboot..." sleep 5 sync; sync; sync; reboot