Florian Eckert <f...@dev.tdt.de> [2020-12-17 10:34:25]: > So that I do not always have to type the whole string.
Well, you don't need to. root@OpenWrt:/# cat ~/.shinit procd_service_list() { ubus call service list "{'name':\"$1\",'verbose':true}" } root@OpenWrt:/# procd_service_list urngd { "urngd": { "instances": { "instance1": { "running": true, "pid": 500, "command": [ "/sbin/urngd" ], "term_timeout": 5 } } } } Then just put this into your files/root/.shinit file and you've it in all your images. > I didn't realize it that way, that only human readable output are allowed. allowed != expected Cheers, Petr _______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel