Changes in / [20:30]


Ignore:
Location:
/trunk/pxeconfig
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • /trunk/pxeconfig/Changelog

    r20 r30  
     10.4.1
     2  Minor change to pxeconfig/pxeconfigd utiltites. Added '-V/--version'
     3  flag for printing version info.
     4
     50.4
     6  Pxeconfig can now be used interactively or via command line
     7  options.
     8
    190.3
    210  Fixed a bug in hexls. The regular expression to determine if
  • /trunk/pxeconfig/INSTALL

    r20 r30  
    5656To activate this on a client you must add the following line to the 'master'
    5757script of the node. It will remove the pxe config file for the node
    58 from the pxe bootserver. I personally place the line just before the network
    59 interface will be brought down:
     58from the pxe bootserver. I personally place the line just before the umount
     59commands. See below which command to use for which systemimager version.
     60Telnet is not included in the 3.X versions.
    6061   # Remove the <hex_ipaddr> file from the pxelinux.cfg directory.
    6162   # So the client will boot from disk
    6263   #       
    63    telnet $IMAGESERVER 10000
     64   3.X)  chroot /a telnet $IMAGESERVER 10000
     65   2.X)  telnet $IMAGESERVER 10000
     66
    6467
    6568Comments or Suggestions mail them to:
  • /trunk/pxeconfig/README

    r20 r30  
    3636
    3737  pxeconfig)
    38      With this interactive program we can specify which pxe config file
     38     With this program we can specify which pxe config file
    3939     a node or nodes must use. This utility will create the links
    4040     in '/tftpboot/pxelinux.cfg'
  • /trunk/pxeconfig/changelog

    r20 r30  
    1 Always edit this file when changes are commited:
     1Always edit this file when changes are commited::
    22
    33$Log: changelog,v $
     4Revision 1.23  2002/11/29 16:47:38  sscpbas
     5Changelog:
     6  Added what was changed for this version.
     7
     8Revision 1.22  2002/11/29 16:31:15  sscpbas
     9pxeconfigd:
     10  Moved CVS info to the comment lines instead of python documentation.
     11
     12Revision 1.21  2002/11/29 16:13:13  sscpbas
     13pxeconfigd:
     14  Added version flag (-V, --version)
     15
     16Revision 1.20  2002/11/29 12:46:05  sscpbas
     17pxeconfig:
     18  changed -v to -V for version info
     19
     20Revision 1.19  2002/11/29 12:09:45  sscpbas
     21pxeconfig:
     22  Added version support. (-v, --version)
     23
    424Revision 1.18  2002/09/30 09:22:02  sscpbas
    525pxeconfig:
  • /trunk/pxeconfig/hexls

    • Property keywords set to Id
    • Property svn:keywords set to Id
    r20 r30  
    2828Date:    September 2002
    2929
    30 CVS info
    31   $Date: 2002/09/11 12:59:19 $
    32   $Revision: 1.5 $
     30SVN info
     31  $Id$
    3332'''
    3433
  • /trunk/pxeconfig/pxeconfig

    • Property keywords set to Id
    • Property svn:keywords set to Id
    r20 r30  
    66# Tester: Walter de Jong <walter@sara.nl>
    77#
    8 # CVS info
    9 #  $Date: 2002/09/30 09:22:02 $
    10 #  $Revision: 1.11 $
     8# SVN info
     9#  $Id$
    1110#
    1211# Copyright (C) 2002
     
    3130Usage: pxeconfig
    3231 [-d|--directory <pxe_config_dir>]
     32 [-V|--version]
    3333 [-n|--net <C-net> -s|--start <number> -e|--end <number> -f|--file <filename>]
    3434
     
    7272START='start'
    7373END='end'
    74 
    75 SHORTOPT_LIST='hd:n:s:e:f:'
    76 LONGOPT_LIST=['help', 'directory=', 'net=', 'start=', 'end=', 'file=']
     74VERSION='0.4.1'
     75
     76SHORTOPT_LIST='hVd:n:s:e:f:'
     77LONGOPT_LIST=['help', 'version', 'directory=', 'net=', 'start=', 'end=', 'file=']
    7778
    7879def select_pxe_configfile():
     
    268269      binfo[FILENAME] = value
    269270
     271    elif opt in ['-V', '--version']:
     272      print VERSION
     273      sys.exit(0)
     274
    270275    elif opt in ['-h', '--help']:
    271276      print __doc__
  • /trunk/pxeconfig/pxeconfigd

    • Property keywords set to Id
    • Property svn:keywords set to Id
    r20 r30  
    1919# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA
    2020#
     21# SVN info
     22#  $Id$
    2123"""
    2224Author: Bas van der Vlies <basv@sara.nl>
     
    3133          -d/--directory <dir>
    3234            Where <dir> is the directory where the pxe config files reside.
     35          -V/--version
     36            Prints the version number and exits
    3337         
    3438        Note:
    3539          This server can ONLY be started from inetd.
    36 
    37 CVS info
    38   $Date: 2002/08/15 06:36:47 $
    39   $Revision: 1.5 $
    4040"""
    4141import time
     
    5656STDIN=0
    5757STDOUT=1
    58 SHORTOPT_LIST='d:'
    59 LONGOPT_LIST=['directory=']
     58SHORTOPT_LIST='Vd:'
     59LONGOPT_LIST=['version', 'directory=']
    6060
    6161PXE_CONF_DIR = '/tftpboot/pxelinux.cfg'
     62VERSION = '0.4.1'
    6263
    6364# Give the current time
     
    133134    sys.exit(1)
    134135
    135   if opts:
    136     opt, PXE_CONF_DIR = opts[0]
     136  for opt, value in opts:
     137
     138    if opt in ['-d', '--directory']:
     139      if not os.path.isdir(value):
     140        os.write(STDOUT, "PXE booting is not configured")
     141        sys.exit(1)
     142      else:
     143        PXE_CONF_DIR = value
     144
     145    elif opt in ['-V', '--version']:
     146      print VERSION
     147      sys.exit(0)
    137148
    138149def server():
     
    140151  """
    141152  check_args(sys.argv)
    142 
    143   if not os.path.isdir(PXE_CONF_DIR):
    144     os.write(STDOUT, "PXE booting is not configured")
    145     sys.exit(1)
    146 
    147153  handleConnection()
    148154
Note: See TracChangeset for help on using the changeset viewer.