#!/bin/bash
#
# Root readonly remount script
#

# Source function library.
#. /etc/init.d/functions

RETVAL=0

umask 077

start() {
    echo -n $"Remounting root readonly: "
    mount -o remount,ro /
    return $RETVAL
}	
stop() {
    echo -n $"Remounting root readonly: "
    mount -o remount,ro /
    return $RETVAL
}
restart() {
	stop
	start
}	

case "$1" in
  start)
  	start
	;;
  stop)
  	stop
	;;
  restart|reload)
  	restart
	;;
  *)
	echo $"Usage: $0 {start|stop|restart}"
	exit 1
esac

exit $?
