Busybox allows script library usage?

Hi,
Busybox allows creating script library files that can be used in other scripts?
I would like to create a library with usual functions that I use in various ash scripts.
I tryed a lot withou success.
Best regards,
carliedu

Yep, of course, e.g.:

# source required system libraries
#
if [ -r "/lib/functions.sh" ] && [ -r "/usr/share/libubox/jshn.sh" ]
then
	. "/lib/functions.sh"
	. "/usr/share/libubox/jshn.sh"
fi

Thank you diddot.
It, finaly works. I tryed it without the quotes. That was the problem. With quotes it works fine.
Best,
carliedu

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.