Initial script, requires cd to /sys/devices/memory before running