I'm working on getting the Sangoma WANPIPE driver working under OpenBSD 3.8 (mostly working) and ran into a couple of little problems that I'm trying to find the "right" way to solve.

The preferred setup is to run their "wanrouter" bash script in the rc.securelevel script, to load the driver module before securelevel is raised to where module loading is no longer permitted.

So, the wanrouter script requires bash, which in turn requires libiconv and libintl. Libiconv and libintl normally install into /usr/local/lib, where bash finds them just fine once the system is fully booted. But, it seems that running the wanrouter bash script from rc.securelevel fails because at that point bash can't find libiconv and libintl. I presume that /usr/local/lib is not in the lib search path at that point.

My hack solution was to symlink both libiconv and libintl into /usr/lib, which does seem to be in the lib search path at that point, but that seems like a poor solution.

If I need to run the wanrouter bash script from rc.securelevel, what is the proper way to ensure bash finds the pieces it needs to run? I'd like to advise Sangoma on how to adjust their install script so that it works right every time without the user having to know what paths to hack.

  Thanks in advance for any advice.

--
     Chris 'Xenon' Hanson | Xenon @ 3D Nature | http://www.3DNature.com/
 "I set the wheels in motion, turn up all the machines, activate the programs,
  and run behind the scenes. I set the clouds in motion, turn up light and 
sound,
  activate the window, and watch the world go 'round." -Prime Mover, Rush.

Reply via email to