Changeset 55
- Timestamp:
- 09/26/05 10:41:25 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/pxeconfig/pxeconfig
r53 r55 78 78 VERSION='0.6' 79 79 REMOVE='remove' 80 81 SHORTOPT_LIST='hVd:n:s:e:f:r' 82 LONGOPT_LIST=['help', 'version', 'directory=', 'net=', 'start=', 'end=', 'file=', 'remove', 'debug'] 80 INTERACTIVE='interactive' 81 82 SHORTOPT_LIST='hVd:n:s:e:f:ri' 83 LONGOPT_LIST=['help', 'version', 'directory=', 'net=', 'start=', 'end=', 'file=', 'remove', 'debug' , 'interactive' ] 83 84 84 85 def select_pxe_configfile(): … … 261 262 # 262 263 for opt,value in opts: 264 263 265 if opt in ['-d', '--directory']: 264 266 if os.path.isdir(value): … … 267 269 print 'Directory %s does not exists\n' %value 268 270 sys.exit(1) 271 272 elif opt in ['-i', '--interactive']: 273 binfo[INTERACTIVE] = 1 269 274 270 275 elif opt in ['-n', '--net']: … … 335 340 hosts_links(hostnames,bootinfo) 336 341 else: 337 if bootinfo: 342 if bootinfo.has_key(INTERACTIVE): 343 interactive(bootinfo) 344 else: 338 345 check_cmd_line(bootinfo) 339 else:340 interactive(bootinfo)341 346 manage_links(bootinfo) 342 347
Note: See TracChangeset
for help on using the changeset viewer.