| 20 Dec 2024 |
@hexa:lossy.network | what is the binary blob? | 02:32:52 |
spacekitteh | basically a bunch of TLVs describing the network configuration | 02:33:38 |
@hexa:lossy.network | so it sounds likely that the user wants to configure that | 02:34:28 |
@hexa:lossy.network | in an easy way | 02:34:33 |
spacekitteh | yeah. but there is basically no easy way other than using the daemon's CLI to set stuff, and then grabbing the file | 02:35:44 |
spacekitteh | however, it /is/ persisted | 02:36:30 |
spacekitteh | basically, most of these settings need to be set/initialised one way or another: https://github.com/openthread/openthread/blob/main/src/cli/README_DATASET.md | 02:39:03 |
spacekitteh | and a few others should be customisable | 02:40:01 |
spacekitteh | the more i'm thinking about this the more i think i'll go the script way, and tack on an extraConfigScript option to run after the necessary ones | 02:42:15 |
spacekitteh | that way, the entire config file doesn't have to be treated as a secret, rather than just the PSK | 02:43:34 |
@hexa:lossy.network | probably for the best | 02:44:53 |
@hexa:lossy.network | but all of that sounds sufficiently cursed | 02:45:03 |
spacekitteh | yeah. thanks google :D | 02:45:18 |
spacekitteh | what would you name the option to enable creation of this script? | 02:47:04 |
spacekitteh | creation/execution | 02:47:18 |
spacekitteh | 'cus like i said, the config file /is/ persistent, so it should be possible to not clobber it | 02:47:48 |
@hexa:lossy.network | sorry, I don't know the lingo | 02:48:50 |
@hexa:lossy.network | and what would be the alternative? | 02:49:05 |
@hexa:lossy.network | why would anyone want that disabled? | 02:49:10 |
spacekitteh | the alternative is doing it manually, once, and saving it on like a network share | 02:49:29 |
spacekitteh | it's just a file in /var/lib/thread | 02:49:47 |
@hexa:lossy.network | so why not just … make it not a bool | 02:49:50 |
@hexa:lossy.network | but an attr set | 02:49:53 |
@hexa:lossy.network | and if it is not empty … run the script to render the given things | 02:50:09 |
spacekitteh | hmm, good idea | 02:50:27 |
spacekitteh | i had just an "enable" option in the set | 02:50:39 |
spacekitteh | but just checking if it's empty or not is much nicer | 02:50:49 |
spacekitteh | buuuut idk, it feels a little dangerous | 02:51:01 |
| 0xfeebdaed joined the room. | 04:02:16 |
| @nickorta12:matrix.org left the room. | 04:40:28 |