jow- / ucode

JavaScript-like language with optional templating
ISC License
87 stars 24 forks source link

UCI commit doesn't apply changes on SUBSYSTEM or hangs #146

Closed aparcar closed 1 year ago

aparcar commented 1 year ago

Hi, I'm trying to modify a UCI option and can't seem to commit things. Using cursor.commit() works but the function never return, using cursor.commit("system") returns but doesn't apply any changes.

const uci = require("uci");
const ubus = require("ubus");

let cursor = uci.cursor();

function set_hostname() {
        let hostname = cursor.get("lime-defaults", "system", "hostname");
        print(hostname);
        cursor.set("system", "@system[0]", "hostname", hostname);
        print(cursor.get("system", "@system[0]", "hostname"));
        cursor.commit();
}

set_hostname();
jow- commented 1 year ago

Works fine here. Run the offending script under strace, see where it hangs.

aparcar commented 1 year ago

Running with strace this loops forever:

``` newfstatat(AT_FDCWD, "/tmp/.uci/system", 0x7fe6ac3948, 0) = -1 ENOENT (No such file or directory) openat(AT_FDCWD, "/tmp/.uci/system", O_RDWR|O_LARGEFILE) = -1 ENOENT (No such file or directory) flock(4, LOCK_UN) = 0 close(4) = 0 newfstatat(AT_FDCWD, "/etc/config/lime-defaults", {st_mode=S_IFREG|0644, st_size=2070, ...}, 0) = 0 openat(AT_FDCWD, "/etc/config/lime-defaults", O_RDWR|O_CREAT|O_LARGEFILE, 0100644) = 4 flock(4, LOCK_EX) = 0 lseek(4, 0, SEEK_SET) = 0 ioctl(4, TIOCGWINSZ, 0x7fe6ac3be8) = -1 ENOTTY (Not a tty) read(4, "config lime system\n\toption hostn"..., 1024) = 1024 read(4, "ver_batman false\n\toption bmx6_pr"..., 1024) = 1024 read(4, "in.redirect_https=0'\n\n", 1024) = 22 read(4, "", 1024) = 0 newfstatat(AT_FDCWD, "/tmp/.uci/lime-defaults", 0x7fe6ac3938, 0) = -1 ENOENT (No such file or directory) openat(AT_FDCWD, "/tmp/.uci/lime-defaults", O_RDWR|O_LARGEFILE) = -1 ENOENT (No such file or directory) flock(4, LOCK_UN) = 0 close(4) = 0 newfstatat(AT_FDCWD, "/etc/config/system", {st_mode=S_IFREG|0600, st_size=500, ...}, 0) = 0 openat(AT_FDCWD, "/etc/config/system", O_RDWR|O_CREAT|O_LARGEFILE, 0100600) = 4 flock(4, LOCK_EX) = 0 lseek(4, 0, SEEK_SET) = 0 ioctl(4, TIOCGWINSZ, 0x7fe6ac3bf8) = -1 ENOTTY (Not a tty) read(4, "\nconfig system\n\toption timezone "..., 1024) = 500 read(4, "", 1024) = 0 newfstatat(AT_FDCWD, "/tmp/.uci/system", 0x7fe6ac3948, 0) = -1 ENOENT (No such file or directory) openat(AT_FDCWD, "/tmp/.uci/system", O_RDWR|O_LARGEFILE) = -1 ENOENT (No such file or directory) flock(4, LOCK_UN) = 0 close(4) = 0 newfstatat(AT_FDCWD, "/etc/config/lime-defaults", {st_mode=S_IFREG|0644, st_size=2070, ...}, 0) = 0 openat(AT_FDCWD, "/etc/config/lime-defaults", O_RDWR|O_CREAT|O_LARGEFILE, 0100644) = 4 flock(4, LOCK_EX) = 0 lseek(4, 0, SEEK_SET) = 0 ioctl(4, TIOCGWINSZ, 0x7fe6ac3be8) = -1 ENOTTY (Not a tty) read(4, "config lime system\n\toption hostn"..., 1024) = 1024 read(4, "ver_batman false\n\toption bmx6_pr"..., 1024) = 1024 read(4, "in.redirect_https=0'\n\n", 1024) = 22 read(4, "", 1024) = 0 newfstatat(AT_FDCWD, "/tmp/.uci/lime-defaults", 0x7fe6ac3938, 0) = -1 ENOENT (No such file or directory) openat(AT_FDCWD, "/tmp/.uci/lime-defaults", O_RDWR|O_LARGEFILE) = -1 ENOENT (No such file or directory) flock(4, LOCK_UN) = 0 close(4) = 0 newfstatat(AT_FDCWD, "/etc/config/system", {st_mode=S_IFREG|0600, st_size=500, ...}, 0) = 0 openat(AT_FDCWD, "/etc/config/system", O_RDWR|O_CREAT|O_LARGEFILE, 0100600) = 4 flock(4, LOCK_EX) = 0 lseek(4, 0, SEEK_SET) = 0 ioctl(4, TIOCGWINSZ, 0x7fe6ac3bf8) = -1 ENOTTY (Not a tty) read(4, "\nconfig system\n\toption timezone "..., 1024) = 500 read(4, "", 1024) = 0 newfstatat(AT_FDCWD, "/tmp/.uci/system", 0x7fe6ac3948, 0) = -1 ENOENT (No such file or directory) openat(AT_FDCWD, "/tmp/.uci/system", O_RDWR|O_LARGEFILE) = -1 ENOENT (No such file or directory) flock(4, LOCK_UN) = 0 close(4) = 0 newfstatat(AT_FDCWD, "/etc/config/lime-defaults", {st_mode=S_IFREG|0644, st_size=2070, ...}, 0) = 0 openat(AT_FDCWD, "/etc/config/lime-defaults", O_RDWR|O_CREAT|O_LARGEFILE, 0100644) = 4 flock(4, LOCK_EX) = 0 lseek(4, 0, SEEK_SET) = 0 ioctl(4, TIOCGWINSZ, 0x7fe6ac3be8) = -1 ENOTTY (Not a tty) read(4, "config lime system\n\toption hostn"..., 1024) = 1024 read(4, "ver_batman false\n\toption bmx6_pr"..., 1024) = 1024 read(4, "in.redirect_https=0'\n\n", 1024) = 22 read(4, "", 1024) = 0 newfstatat(AT_FDCWD, "/tmp/.uci/lime-defaults", 0x7fe6ac3938, 0) = -1 ENOENT (No such file or directory) openat(AT_FDCWD, "/tmp/.uci/lime-defaults", O_RDWR|O_LARGEFILE) = -1 ENOENT (No such file or directory) flock(4, LOCK_UN) = 0 close(4) = 0 newfstatat(AT_FDCWD, "/etc/config/system", {st_mode=S_IFREG|0600, st_size=500, ...}, 0) = 0 openat(AT_FDCWD, "/etc/config/system", O_RDWR|O_CREAT|O_LARGEFILE, 0100600) = 4 flock(4, LOCK_EX) = 0 lseek(4, 0, SEEK_SET) = 0 ioctl(4, TIOCGWINSZ, 0x7fe6ac3bf8) = -1 ENOTTY (Not a tty) read(4, "\nconfig system\n\toption timezone "..., 1024) = 500 read(4, "", 1024) = 0 newfstatat(AT_FDCWD, "/tmp/.uci/system", 0x7fe6ac3948, 0) = -1 ENOENT (No such file or directory) openat(AT_FDCWD, "/tmp/.uci/system", O_RDWR|O_LARGEFILE) = -1 ENOENT (No such file or directory) flock(4, LOCK_UN) = 0 close(4) = 0 newfstatat(AT_FDCWD, "/etc/config/lime-defaults", {st_mode=S_IFREG|0644, st_size=2070, ...}, 0) = 0 openat(AT_FDCWD, "/etc/config/lime-defaults", O_RDWR|O_CREAT|O_LARGEFILE, 0100644) = 4 flock(4, LOCK_EX) = 0 lseek(4, 0, SEEK_SET) = 0 ioctl(4, TIOCGWINSZ, 0x7fe6ac3be8) = -1 ENOTTY (Not a tty) munmap(0x7fbde4e000, 4096) = 0 read(4, "config lime system\n\toption hostn"..., 1024) = 1024 read(4, "ver_batman false\n\toption bmx6_pr"..., 1024) = 1024 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbde4e000 read(4, "in.redirect_https=0'\n\n", 1024) = 22 read(4, "", 1024) = 0 newfstatat(AT_FDCWD, "/tmp/.uci/lime-defaults", 0x7fe6ac3938, 0) = -1 ENOENT (No such file or directory) openat(AT_FDCWD, "/tmp/.uci/lime-defaults", O_RDWR|O_LARGEFILE) = -1 ENOENT (No such file or directory) flock(4, LOCK_UN) = 0 close(4) = 0 newfstatat(AT_FDCWD, "/etc/config/system", {st_mode=S_IFREG|0600, st_size=500, ...}, 0) = 0 openat(AT_FDCWD, "/etc/config/system", O_RDWR|O_CREAT|O_LARGEFILE, 0100600) = 4 flock(4, LOCK_EX) = 0 lseek(4, 0, SEEK_SET) = 0 ioctl(4, TIOCGWINSZ, 0x7fe6ac3bf8) = -1 ENOTTY (Not a tty) read(4, "\nconfig system\n\toption timezone "..., 1024) = 500 read(4, "", 1024) = 0 newfstatat(AT_FDCWD, "/tmp/.uci/system", 0x7fe6ac3948, 0) = -1 ENOENT (No such file or directory) openat(AT_FDCWD, "/tmp/.uci/system", O_RDWR|O_LARGEFILE) = -1 ENOENT (No such file or directory) flock(4, LOCK_UN) = 0 close(4) = 0 newfstatat(AT_FDCWD, "/etc/config/lime-defaults", {st_mode=S_IFREG|0644, st_size=2070, ...}, 0) = 0 openat(AT_FDCWD, "/etc/config/lime-defaults", O_RDWR|O_CREAT|O_LARGEFILE, 0100644) = 4 flock(4, LOCK_EX) = 0 lseek(4, 0, SEEK_SET) = 0 ioctl(4, TIOCGWINSZ, 0x7fe6ac3be8) = -1 ENOTTY (Not a tty) read(4, "config lime system\n\toption hostn"..., 1024) = 1024 read(4, "ver_batman false\n\toption bmx6_pr"..., 1024) = 1024 read(4, "in.redirect_https=0'\n\n", 1024) = 22 read(4, "", 1024) = 0 newfstatat(AT_FDCWD, "/tmp/.uci/lime-defaults", 0x7fe6ac3938, 0) = -1 ENOENT (No such file or directory) openat(AT_FDCWD, "/tmp/.uci/lime-defaults", O_RDWR|O_LARGEFILE) = -1 ENOENT (No such file or directory) flock(4, LOCK_UN) = 0 close(4) = 0 newfstatat(AT_FDCWD, "/etc/config/system", {st_mode=S_IFREG|0600, st_size=500, ...}, 0) = 0 openat(AT_FDCWD, "/etc/config/system", O_RDWR|O_CREAT|O_LARGEFILE, 0100600) = 4 flock(4, LOCK_EX) = 0 lseek(4, 0, SEEK_SET) = 0 ioctl(4, TIOCGWINSZ, 0x7fe6ac3bf8) = -1 ENOTTY (Not a tty) read(4, "\nconfig system\n\toption timezone "..., 1024) = 500 read(4, "", 1024) = 0 newfstatat(AT_FDCWD, "/tmp/.uci/system", 0x7fe6ac3948, 0) = -1 ENOENT (No such file or directory) openat(AT_FDCWD, "/tmp/.uci/system", O_RDWR|O_LARGEFILE) = -1 ENOENT (No such file or directory) flock(4, LOCK_UN) = 0 close(4) = 0 newfstatat(AT_FDCWD, "/etc/config/lime-defaults", {st_mode=S_IFREG|0644, st_size=2070, ...}, 0) = 0 openat(AT_FDCWD, "/etc/config/lime-defaults", O_RDWR|O_CREAT|O_LARGEFILE, 0100644) = 4 flock(4, LOCK_EX) = 0 lseek(4, 0, SEEK_SET) = 0 ioctl(4, TIOCGWINSZ, 0x7fe6ac3be8) = -1 ENOTTY (Not a tty) read(4, "config lime system\n\toption hostn"..., 1024) = 1024 read(4, "ver_batman false\n\toption bmx6_pr"..., 1024) = 1024 read(4, "in.redirect_https=0'\n\n", 1024) = 22 read(4, "", 1024) = 0 newfstatat(AT_FDCWD, "/tmp/.uci/lime-defaults", 0x7fe6ac3938, 0) = -1 ENOENT (No such file or directory) openat(AT_FDCWD, "/tmp/.uci/lime-defaults", O_RDWR|O_LARGEFILE) = -1 ENOENT (No such file or directory) flock(4, LOCK_UN) = 0 close(4) = 0 newfstatat(AT_FDCWD, "/etc/config/system", {st_mode=S_IFREG|0600, st_size=500, ...}, 0) = 0 openat(AT_FDCWD, "/etc/config/system", O_RDWR|O_CREAT|O_LARGEFILE, 0100600) = 4 flock(4, LOCK_EX) = 0 lseek(4, 0, SEEK_SET) = 0 ioctl(4, TIOCGWINSZ, 0x7fe6ac3bf8) = -1 ENOTTY (Not a tty) read(4, "\nconfig system\n\toption timezone "..., 1024) = 500 read(4, "", 1024) = 0 newfstatat(AT_FDCWD, "/tmp/.uci/system", 0x7fe6ac3948, 0) = -1 ENOENT (No such file or directory) openat(AT_FDCWD, "/tmp/.uci/system", O_RDWR|O_LARGEFILE) = -1 ENOENT (No such file or directory) flock(4, LOCK_UN^C) = 0 strace: Process 4230 detached ```
jow- commented 1 year ago

Ah, the no-argument version of commit hangs indeed. Try cursor.commit("system") in the meanwhile.

aparcar commented 1 year ago

I did try that, too. In that case the changes are not committed and the content of system stay the same.

``` root@LiMe-%M4%M5%M6:~# strace ucode main.uc execve("/usr/bin/ucode", ["ucode", "main.uc"], 0x7ff7f179b8 /* 15 vars */) = 0 set_tid_address(0x7fa92d1248) = 4265 brk(NULL) = 0x253b3000 brk(0x253b5000) = 0x253b5000 mmap(0x253b3000, 4096, PROT_NONE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x253b3000 openat(AT_FDCWD, "/etc/ld-musl-aarch64.path", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = -1 ENOENT (No such file or directory) openat(AT_FDCWD, "/lib/libucode.so.20220812", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = -1 ENOENT (No such file or directory) openat(AT_FDCWD, "/usr/local/lib/libucode.so.20220812", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = -1 ENOENT (No such file or directory) openat(AT_FDCWD, "/usr/lib/libucode.so.20220812", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 3 fcntl(3, F_SETFD, FD_CLOEXEC) = 0 fstat(3, {st_mode=S_IFREG|0644, st_size=196835, ...}) = 0 read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0\267\0\1\0\0\0\0\0\0\0\0\0\0\0"..., 960) = 960 mmap(NULL, 266240, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x7fa91ee000 mmap(0x7fa922c000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x2e000) = 0x7fa922c000 close(3) = 0 openat(AT_FDCWD, "/lib/libjson-c.so.5", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = -1 ENOENT (No such file or directory) openat(AT_FDCWD, "/usr/local/lib/libjson-c.so.5", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = -1 ENOENT (No such file or directory) openat(AT_FDCWD, "/usr/lib/libjson-c.so.5", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 3 fcntl(3, F_SETFD, FD_CLOEXEC) = 0 fstat(3, {st_mode=S_IFREG|0644, st_size=65574, ...}) = 0 read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0\267\0\1\0\0\0\0\0\0\0\0\0\0\0"..., 960) = 960 mmap(NULL, 135168, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x7fa91cd000 mmap(0x7fa91ec000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0xf000) = 0x7fa91ec000 close(3) = 0 openat(AT_FDCWD, "/lib/libgcc_s.so.1", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 3 fcntl(3, F_SETFD, FD_CLOEXEC) = 0 fstat(3, {st_mode=S_IFREG|0644, st_size=131088, ...}) = 0 read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0\267\0\1\0\0\0\0\0\0\0\0\0\0\0"..., 960) = 960 mmap(NULL, 200704, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x7fa919c000 mmap(0x7fa91cb000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x1f000) = 0x7fa91cb000 close(3) = 0 mprotect(0x7fa922c000, 8192, PROT_READ) = 0 mprotect(0x7fa91ec000, 4096, PROT_READ) = 0 mprotect(0x7fa91cb000, 4096, PROT_READ) = 0 mprotect(0x41f000, 4096, PROT_READ) = 0 getrandom("\x98\x2f\x14\xa9", 4, GRND_NONBLOCK) = 4 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fa92c9000 mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fa92c7000 munmap(0x7fa92c9000, 4096) = 0 mmap(NULL, 16384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fa92c3000 munmap(0x7fa92c7000, 8192) = 0 openat(AT_FDCWD, "main.uc", O_RDONLY|O_LARGEFILE) = 3 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fa92c9000 readv(3, [{iov_base="c", iov_len=1}, {iov_base="onst uci = require(\"uci\");\nconst"..., iov_len=1024}], 2) = 393 lseek(3, 0, SEEK_SET) = 0 readv(3, [{iov_base="con", iov_len=3}, {iov_base="st uci = require(\"uci\");\nconst u"..., iov_len=1024}], 2) = 393 lseek(3, -393, SEEK_CUR) = 0 readv(3, [{iov_base="const uci = require(\"uci\");\ncons"..., iov_len=127}, {iov_base="stname = cursor.get(\"lime-defaul"..., iov_len=1024}], 2) = 393 readv(3, [{iov_base="", iov_len=118}, {iov_base="", iov_len=1024}], 2) = 0 newfstatat(AT_FDCWD, "/usr/lib/ucode/uci.so", {st_mode=S_IFREG|0755, st_size=65594, ...}, 0) = 0 openat(AT_FDCWD, "/usr/lib/ucode/uci.so", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 4 fcntl(4, F_SETFD, FD_CLOEXEC) = 0 fstat(4, {st_mode=S_IFREG|0755, st_size=65594, ...}) = 0 read(4, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0\267\0\1\0\0\0\0\0\0\0\0\0\0\0"..., 960) = 960 mmap(NULL, 135168, PROT_READ|PROT_EXEC, MAP_PRIVATE, 4, 0) = 0x7fa917b000 mmap(0x7fa919a000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 4, 0xf000) = 0x7fa919a000 close(4) = 0 openat(AT_FDCWD, "/lib/libuci.so", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 4 fcntl(4, F_SETFD, FD_CLOEXEC) = 0 fstat(4, {st_mode=S_IFREG|0755, st_size=65619, ...}) = 0 read(4, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0\267\0\1\0\0\0\0\0\0\0\0\0\0\0"..., 960) = 960 mmap(NULL, 135168, PROT_READ|PROT_EXEC, MAP_PRIVATE, 4, 0) = 0x7fa915a000 mmap(0x7fa9179000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 4, 0xf000) = 0x7fa9179000 close(4) = 0 openat(AT_FDCWD, "/lib/libubox.so.20220927", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 4 fcntl(4, F_SETFD, FD_CLOEXEC) = 0 fstat(4, {st_mode=S_IFREG|0644, st_size=65617, ...}) = 0 read(4, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0\267\0\1\0\0\0\0\0\0\0\0\0\0\0"..., 960) = 960 mmap(NULL, 135168, PROT_READ|PROT_EXEC, MAP_PRIVATE, 4, 0) = 0x7fa9139000 mmap(0x7fa9158000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 4, 0xf000) = 0x7fa9158000 close(4) = 0 mprotect(0x7fa919a000, 4096, PROT_READ) = 0 mprotect(0x7fa9179000, 4096, PROT_READ) = 0 mprotect(0x7fa9158000, 4096, PROT_READ) = 0 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fa92c8000 newfstatat(AT_FDCWD, "/usr/lib/ucode/ubus.so", {st_mode=S_IFREG|0755, st_size=65539, ...}, 0) = 0 openat(AT_FDCWD, "/usr/lib/ucode/ubus.so", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 4 fcntl(4, F_SETFD, FD_CLOEXEC) = 0 fstat(4, {st_mode=S_IFREG|0755, st_size=65539, ...}) = 0 read(4, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0\267\0\1\0\0\0\0\0\0\0\0\0\0\0"..., 960) = 960 mmap(NULL, 135168, PROT_READ|PROT_EXEC, MAP_PRIVATE, 4, 0) = 0x7fa9118000 mmap(0x7fa9137000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 4, 0xf000) = 0x7fa9137000 close(4) = 0 openat(AT_FDCWD, "/lib/libubus.so.20220615", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 4 fcntl(4, F_SETFD, FD_CLOEXEC) = 0 fstat(4, {st_mode=S_IFREG|0644, st_size=65698, ...}) = 0 read(4, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0\267\0\1\0\0\0\0\0\0\0\0\0\0\0"..., 960) = 960 mmap(NULL, 135168, PROT_READ|PROT_EXEC, MAP_PRIVATE, 4, 0) = 0x7fa90f7000 mmap(0x7fa9116000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 4, 0xf000) = 0x7fa9116000 close(4) = 0 openat(AT_FDCWD, "/lib/libblobmsg_json.so.20220927", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 4 fcntl(4, F_SETFD, FD_CLOEXEC) = 0 fstat(4, {st_mode=S_IFREG|0644, st_size=65539, ...}) = 0 read(4, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0\267\0\1\0\0\0\0\0\0\0\0\0\0\0"..., 960) = 960 mmap(NULL, 135168, PROT_READ|PROT_EXEC, MAP_PRIVATE, 4, 0) = 0x7fa90d6000 mmap(0x7fa90f5000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 4, 0xf000) = 0x7fa90f5000 close(4) = 0 mprotect(0x7fa9137000, 4096, PROT_READ) = 0 mprotect(0x7fa9116000, 4096, PROT_READ) = 0 mprotect(0x7fa90f5000, 4096, PROT_READ) = 0 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fa92c7000 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fa92c2000 newfstatat(AT_FDCWD, "/etc/config/lime-defaults", {st_mode=S_IFREG|0644, st_size=2071, ...}, 0) = 0 openat(AT_FDCWD, "/etc/config/lime-defaults", O_RDONLY|O_LARGEFILE) = 4 flock(4, LOCK_SH) = 0 lseek(4, 0, SEEK_SET) = 0 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fa92c1000 read(4, "config lime system\n\toption hostn"..., 1024) = 1024 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fa92c0000 read(4, "over_batman false\n\toption bmx6_p"..., 1024) = 1024 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fa92bf000 read(4, "ain.redirect_https=0'\n\n", 1024) = 23 read(4, "", 1024) = 0 newfstatat(AT_FDCWD, "/tmp/.uci/lime-defaults", 0x7ffe193258, 0) = -1 ENOENT (No such file or directory) newfstatat(AT_FDCWD, "/tmp/.uci/lime-defaults", 0x7ffe193258, 0) = -1 ENOENT (No such file or directory) flock(4, LOCK_UN) = 0 close(4) = 0 munmap(0x7fa92c1000, 4096) = 0 newfstatat(AT_FDCWD, "/etc/config/system", {st_mode=S_IFREG|0600, st_size=500, ...}, 0) = 0 openat(AT_FDCWD, "/etc/config/system", O_RDONLY|O_LARGEFILE) = 4 flock(4, LOCK_SH) = 0 lseek(4, 0, SEEK_SET) = 0 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fa92c1000 read(4, "\nconfig system\n\toption timezone "..., 1024) = 500 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fa92be000 read(4, "", 1024) = 0 newfstatat(AT_FDCWD, "/tmp/.uci/system", 0x7ffe193198, 0) = -1 ENOENT (No such file or directory) newfstatat(AT_FDCWD, "/tmp/.uci/system", 0x7ffe193198, 0) = -1 ENOENT (No such file or directory) flock(4, LOCK_UN) = 0 close(4) = 0 munmap(0x7fa92c1000, 4096) = 0 munmap(0x7fa92c0000, 4096) = 0 munmap(0x7fa92be000, 4096) = 0 munmap(0x7fa92bf000, 4096) = 0 close(3) = 0 munmap(0x7fa92c9000, 4096) = 0 munmap(0x7fa92c2000, 4096) = 0 munmap(0x7fa92c3000, 16384) = 0 munmap(0x7fa92c7000, 4096) = 0 ioctl(1, TIOCGWINSZ, {ws_row=75, ws_col=151, ws_xpixel=1057, ws_ypixel=1050}) = 0 writev(1, [{iov_base="umesh-%M4%M5%M6umesh-%M4%M5%M6", iov_len=30}, {iov_base=NULL, iov_len=0}], 2umesh-%M4%M5%M6umesh-%M4%M5%M6) = 30 exit_group(0) = ? +++ exited with 0 +++ root@LiMe-%M4%M5%M6:~# cat /etc/config/system config system option timezone 'UTC' option ttylogin '0' option log_size '64' option urandom_seed '0' option hostname 'LiMe-%M4%M5%M6' config timeserver 'ntp' option enabled '1' option enable_server '0' list server '0.openwrt.pool.ntp.org' list server '1.openwrt.pool.ntp.org' list server '2.openwrt.pool.ntp.org' list server '3.openwrt.pool.ntp.org' config led 'led_wan' option name 'WAN' option sysfs 'inet:blue' option trigger 'netdev' option mode 'link tx rx' option dev 'wan' root@LiMe-%M4%M5%M6:~# ```
aparcar commented 1 year ago

Great thank you!