SourceFiles.org - Use the Source, Luke
Home | Register | News | Forums | Guide | MyLinks | Bookmark

Related Sites

Latest News
  General News
  Reviews
  Press Releases
  Software
  Hardware
  Security
  Tutorials
  Off Topic


Back to files

Concept

To have a utility that will allow for particular behaviour in your bootscripts depending on the choosen boot parameters. So if you would like to choose between different kernels using LILO you can have associated bootscripts which could handle different firewall commands for example for different Linux kernel versions.

Installation procedure

Untar the associated archive, compile & install

        tar xvfy cmdinfo20001028.tar.bz2
        cd cmdinfo
        make all install

This will install cmdinfo in /sbin

Usage

  • Make sure your kernel has built-in support for the /proc filesystem and that /proc is mounted.
  • Using lilo put in your lilo.conf an entry like append="key=value" or append="key"
  • in any location where you like to retrieve a particular value use

    cmdinfo key e.g. in a bootscript

    export key=`/sbin/cmdinfo key`

  • if a key=value was specified, cmdinfo will print on stdout value if called with cmdinfo key, if key was specified without value then 1 will be printed out to stdout, if key was not specified, 0 will be printed.

Version

$Id: README,v 1.1 2000/10/28 12:16:11 cvs Exp $


Other Sites

Discussion Groups
  Beginners
  Distributions
  Networking / Security
  Software
  PDAs

About | FAQ | Privacy | Awards | Contact
Comments to the webmaster are welcome.
Copyright 2006 Sourcefiles.org All rights reserved.