> On Thu, 2 Feb 2006, Tomasz Chmielewski wrote:
>
>> - the output of the script is "guessed-name005" (and exit status 0) in case 
>> it guessed the name correctly,
>
> OK.
>
>> - it exits with the status 1 if there was an error (couldn't connect to LDAP 
>> etc.).
> What should be done now?

Thanks.

Now it seems to work *almost* well.

What's missing, is that config.pl should fall over to a manual name if the 
script exited with status other than 1 (what can mean, that we couldn't
connect to the LDAP server etc.).

You can download it from http://www2.wpkg.org/linuxaux.tar.bz2
If it doesn't work, try http://wpkg.org/linuxaux.tar.bz2

The script itself is about 3 kB, but it needs programs like ldapsearch and 
ldapmodify, and these programs need some libraries.
So the package is over 700 kB, including the binaries.

Usage:

Uncompress the package, you will see that it includes a linuxaux directory.

Inside you will find these directories:

- addon - it contains the script (checkmac.sh), ldapsearch/ldapmodify programs 
and libraries.
Edit checkmac.sh script, and give all needed variables (LDAP server, BASEDN 
etc.)

- bin - it contains a modified version of make-blkdev-nodes: "cp -r 
/z/linuxaux/addon/* /" at the end of it, which copies the needed files

- site - it contains a modified config.pl, which starts the script

As I said, config.pl should be modified to handle all unfortunate events like 
inability to connect to the LDAP server (the script exits with a code
other than 0 then).

Please tell me what you think.


-- 
Tomasz Chmielewski
http://wpkg.org




-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642
_______________________________________________
unattended-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/unattended-devel

Reply via email to