#!/bin/sh
echo "syncing disks"
sync
echo "remounting /dev/root read-only"
mount -n -o remount,ro /dev/root
echo "rebooting"
/sbin/reboot