On Friday 19 June 2009 12:52:26 Bastian Bittorf wrote:
> * elektra <onelek...@gmx.net> [19.06.2009 12:15]:
> > doesn't connect to other Asterisk servers if 'route' is missing.
>
> therefore i implement a route() wrapper.
> ATM i start at /etc/functions.sh but e.g.
> asterisk does not use it. maybe it is a good
> idea to make a symlink for /sbin/route|ifconfig|arp
> to to wrapper at boottime, to avoid such things?
>
> other ideas?

Maybe its just me, but the last few weeks I tried to grok the OpenWrt base-
files scrips (and succeeded [1]) and my impression is that there is already a 
lot of stuff crammed into /etc/functions.sh which is sourced by almost 
everything but only used by a handful of scripts.

Why not create just scripts in /sbin?

If you're concerned about too much forking, you could put the functions in 
/lib/network instead.  But as all calls to ifconfig etc. in base-files scripts 
should be replaced by calls to ip, I don't think its worth having that stuff 
sourced everytime the network scripts are run.

Cheers,
Malte

[1] And it seems like there aren't many people around who did so, judging by 
all the code duplication and weird call chains I found.

-- 
   
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to