remounts = confgetlist("Scripts::Remount::Partitions", "") if not remounts then return end if script_slot == "Scripts::PM::Pre" then for i, part in ipairs(remounts) do os.execute("mount -o remount,rw "..part) end elseif script_slot == "Scripts::PM::Post" then for i, part in ipairs(remounts) do os.execute("mount -o remount,ro "..part) end end -- vim:sts=4