Changeset 4 for trunk/pxeconfig/pxeconfig
- Timestamp:
- 02/19/02 10:57:40 (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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():
Note: See TracChangeset
for help on using the changeset viewer.