diff --git a/exec/load/modopts.js b/exec/load/modopts.js
new file mode 100644
index 0000000000000000000000000000000000000000..b6b26d173f96ba521aa3db2005ad6bcc26f33a3e
--- /dev/null
+++ b/exec/load/modopts.js
@@ -0,0 +1,23 @@
+/* modopts.js */
+
+/* $Id$ */
+
+/* Load Synchronet JS Module Control/Enable options from ctrl/modopts.ini */
+/* Parse a single .ini section using the argument (to load) as the section name */
+/* and return an object containing the key=value pairs as properties */
+
+
+function get_mod_options(modname)
+{
+	var ini_file = new File(file_cfgname(system.ctrl_dir, "modopts.ini"));
+	if(!ini_file.open("r")) {
+		delete ini_file;
+		return undefined;
+	}
+
+	var obj = ini_file.iniGetObject(modname);
+	delete ini_file;
+	return obj;
+}
+
+return get_mod_options(argv[0]);
\ No newline at end of file