[syslinux] [PATCH 2/2] docs: document Lua syslinux module changes
p.emmerich at first-colo.net
p.emmerich at first-colo.net
Fri Nov 4 06:19:30 PDT 2016
From: Paul Emmerich <p.emmerich at first-colo.net>
---
com32/lua/doc/syslinux.asc | 15 ++++++++++++---
1 file changed, 12 insertions(+), 3 deletions(-)
diff --git a/com32/lua/doc/syslinux.asc b/com32/lua/doc/syslinux.asc
index 6475d42..92ad7aa 100644
--- a/com32/lua/doc/syslinux.asc
+++ b/com32/lua/doc/syslinux.asc
@@ -90,6 +90,9 @@ Return the size of a loaded _file_.
name():::
Return the name of a loaded _file_.
+data():::
+Return the contents of a loaded _file_ as a string.
+
initramfs()::
Return an empty _initramfs_ object. Its methods are:
@@ -97,11 +100,17 @@ load(filename):::
Load contents of +filename+ into an _initramfs_ and return the
extended object.
-add_file(filename[,data[,do_mkdir[,mode]]]):::
+add_file(filename[,data[,mode[,do_mkdir]]]):::
Add +filename+ of +mode+ containing +data+ to an _initramfs_ and
return the extended object.
-If +do_mkdir+, create parent directories, too. +mode+ defaults
-to 7*64+5*8+5 (which is 0755 in octal).
++data+ can either be a string or a _file_ object.
+If +do_mkdir+, create parent directories, too. +do_mkdir+ defaults
+to true. +mode+ defaults to 7*64+5*8+5 (which is 0755 in octal).
+
+load_file(filename, source, mode, do_mkdir):::
+Load a file from +source+, add it as +filename+ of +mode+ to
+an _initramfs_ and return the extended object.
++mode+ and +do_mkdir+ are the same as in _add_file_.
size():::
Returns the current size of an _initramfs_.
--
2.2.1
More information about the Syslinux
mailing list