Ignore:
Timestamp:
02/21/02 14:21:52 (22 years ago)
Author:
sscpbas
Message:

Added the license info to each utility and fix and error in the getopt
handling for pxeconfig utility

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/pxeconfig/pxeconfig

    r4 r6  
    77#
    88# CVS info
    9 #  $Date: 2002/02/19 09:57:40 $
    10 #  $Revision: 1.3 $
     9#  $Date: 2002/02/21 13:21:51 $
     10#  $Revision: 1.4 $
     11#
     12# Copyright (C) 2000, SARA.
     13#
     14# Permission to use, copy, modify, and distribute this software and its
     15# documentation for non-commercial purposes and without fee is hereby
     16# granted, provided that the above copyright notice appears in all copies
     17# and that both the copyright notice and this permission notice appear in
     18# supporting documentation.
     19#
     20# Neither SARA (Stichting Academisch Rekencentrum Amsterdam) nor the
     21# nor the author make any representations about the suitability of this
     22# software for any purpose. This software is provided ``as is'' without
     23# express or implied warranty.
     24#
    1125#
    1226"""
     
    173187  iptable[network].append(int(end))
    174188
    175 
    176189  for net in iptable.keys():
    177190    if DEBUG:
     
    179192    create_links(iptable[net])
    180193
     194
    181195def check_args(argv):
    182196  """
    183   Must we use another directory for the PXE configuration
     197  command line option:
     198    -d/--directory <dir>
     199      Where <dir> is the directory where the pxe config files reside.
    184200  """
    185201  global PXE_CONF_DIR
     
    187203    opts, args = getopt.getopt(argv[1:], SHORTOPT_LIST, LONGOPT_LIST)
    188204  except getopt.error, detail:
    189     print __doc__
     205    print check_args.__doc__
    190206    print detail
    191207    sys.exit(1)
Note: See TracChangeset for help on using the changeset viewer.