Skip to content

Commit

Permalink
Modified patch
Browse files Browse the repository at this point in the history
  • Loading branch information
JADarius committed Jul 15, 2023
1 parent a81d7bc commit 860acb3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Config.uk
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
menuconfig LIBLUA
bool "The Lua programming language"
default n
select LIBNEWLIBC
select LIBMUSL
select LIBUKTIME
select UKUNISTD
select LIBUKSIGNAL
Expand Down
4 changes: 2 additions & 2 deletions patches/0001-lua-main-add-initrd.patch
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
int argc = (int)lua_tointeger(L, 1);
char **argv = (char **)lua_touserdata(L, 2);
int script;
+ struct ukplat_memregion_desc img;
+ struct ukplat_memregion_desc *img;
+ char *cstr;
+
int args = collectargs(argv, &script);
Expand All @@ -32,7 +32,7 @@
- if (lua_stdin_is_tty()) { /* running in interactive mode? */
+ /* see if script is available from initrd */
+ else if (ukplat_memregion_find_initrd0(&img) >= 0) {
+ cstr = (char *)img.base;
+ cstr = (char *)img->pbase;
+ dostring(L, cstr, "initrd");
+ }
+ else {
Expand Down

0 comments on commit 860acb3

Please sign in to comment.