Changeset 4
- Timestamp:
- 02/19/02 10:57:40 (22 years ago)
- Location:
- trunk/pxeconfig
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/pxeconfig/changelog
r3 r4 1 1 Always edit this file when changes are commited: 2 2 3 $Log: changelog,v $ 4 Revision 1.3 2002/02/19 09:57:40 sscpbas 5 Fixed an error in the getopt handling for the client and server. 3 6 7 Addes some pxe config files 4 8 5 $Log: changelog,v $6 9 Revision 1.2 2002/02/19 09:38:10 sscpbas 7 10 Added command line option to specifiy where the pxe config directory resides. -
trunk/pxeconfig/pxeconfig
r3 r4 7 7 # 8 8 # CVS info 9 # $Date: 2002/02/19 09: 38:10 $10 # $Revision: 1. 2$9 # $Date: 2002/02/19 09:57:40 $ 10 # $Revision: 1.3 $ 11 11 # 12 12 """ … … 42 42 # Constants 43 43 # 44 PXE_CONF IG_DIR='/tftpboot/pxelinux.cfg'44 PXE_CONF_DIR='/tftpboot/pxelinux.cfg' 45 45 NADDR=0 46 46 PXEFILE=1 … … 55 55 """ 56 56 57 os.chdir(PXE_CONF IG_DIR)57 os.chdir(PXE_CONF_DIR) 58 58 59 59 # Try to determine to which default file point to and … … 97 97 def create_links(list): 98 98 """ 99 Create the links in the PXE_CONF IG_DIR,99 Create the links in the PXE_CONF_DIR, 100 100 list : A list containing: network hex addres, pxe config file, 101 101 start number, end number 102 102 """ 103 os.chdir(PXE_CONF IG_DIR)103 os.chdir(PXE_CONF_DIR) 104 104 naddr = list[NADDR] 105 105 pxe_filename = list[PXEFILE] … … 183 183 Must we use another directory for the PXE configuration 184 184 """ 185 global PXE_CONF_DIR 185 186 try: 186 187 opts, args = getopt.getopt(argv[1:], SHORTOPT_LIST, LONGOPT_LIST) … … 191 192 192 193 if opts: 193 opt, PXE_CONFIG_DIR = opts[0] 194 opt, PXE_CONF_DIR = opts[0] 195 196 if not os.path.isdir(PXE_CONF_DIR): 197 print 'Directory %s does not exists' %PXE_CONF_DIR 198 sys.exit(1) 194 199 195 200 def main(): -
trunk/pxeconfig/pxeconfigd
r3 r4 17 17 18 18 CVS info 19 $Date: 2002/02/19 09: 38:10 $20 $Revision: 1. 2$19 $Date: 2002/02/19 09:57:40 $ 20 $Revision: 1.3 $ 21 21 """ 22 22 import time … … 105 105 Must we use another directory for the PXE configuration 106 106 """ 107 global PXE_CONF_DIR 108 107 109 try: 108 110 opts, args = getopt.getopt(argv[1:], SHORTOPT_LIST, LONGOPT_LIST) … … 113 115 114 116 if opts: 115 opt, PXE_CONFIG_DIR = opts[0] 116 117 118 119 117 opt, PXE_CONF_DIR = opts[0] 120 118 121 119 def server():
Note: See TracChangeset
for help on using the changeset viewer.