Ignore:
Timestamp:
02/19/02 10:38:10 (21 years ago)
Author:
sscpbas
Message:

Added command line option to specifiy where the pxe config directory resides.
This is for client ans server side.

Added some info about the package such as a READMEE, AUTHORS and LICENSE.SARA
file.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/pxeconfig/pxeconfig

    r2 r3  
    77#
    88# CVS info
    9 #  $Date: 2002/02/18 15:02:00 $
    10 #  $Revision: 1.1 $
     9#  $Date: 2002/02/19 09:38:10 $
     10#  $Revision: 1.2 $
    1111#
    1212"""
     
    3434import os
    3535import glob
     36import getopt
    3637
    3738# DEBUG
     
    4647START=2
    4748END=3
     49SHORTOPT_LIST='d:'
     50LONGOPT_LIST=['directory=']
    4851
    4952def choice_pxe_configfile():
     
    176179    create_links(iptable[net])
    177180
     181def check_args(argv):
     182  """
     183  Must we use another directory for the PXE configuration
     184  """
     185  try:
     186    opts, args = getopt.getopt(argv[1:], SHORTOPT_LIST, LONGOPT_LIST)
     187  except getopt.error, detail:
     188    print __doc__
     189    print detail
     190    sys.exit(1)
     191
     192  if opts:
     193    opt, PXE_CONFIG_DIR = opts[0]
     194
    178195def main():
     196  check_args(sys.argv)
    179197  interactive()
    180198
Note: See TracChangeset for help on using the changeset viewer.