#!/system/bin/sh

if [ "$1" == "rw" ]; then
mount -o remount,rw  /system
elif [ "$1" == "ro" ]; then
mount -o remount,ro /system
else
echo "Usage: remount { rw | ro } mount system rw or ro"
fi
