Changeset 3 for trunk/pxeconfig/pxeconfig
- Timestamp:
- 02/19/02 10:38:10 (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/pxeconfig/pxeconfig
r2 r3 7 7 # 8 8 # CVS info 9 # $Date: 2002/02/1 8 15:02:00 $10 # $Revision: 1. 1$9 # $Date: 2002/02/19 09:38:10 $ 10 # $Revision: 1.2 $ 11 11 # 12 12 """ … … 34 34 import os 35 35 import glob 36 import getopt 36 37 37 38 # DEBUG … … 46 47 START=2 47 48 END=3 49 SHORTOPT_LIST='d:' 50 LONGOPT_LIST=['directory='] 48 51 49 52 def choice_pxe_configfile(): … … 176 179 create_links(iptable[net]) 177 180 181 def check_args(argv): 182 """ 183 Must we use another directory for the PXE configuration 184 """ 185 try: 186 opts, args = getopt.getopt(argv[1:], SHORTOPT_LIST, LONGOPT_LIST) 187 except getopt.error, detail: 188 print __doc__ 189 print detail 190 sys.exit(1) 191 192 if opts: 193 opt, PXE_CONFIG_DIR = opts[0] 194 178 195 def main(): 196 check_args(sys.argv) 179 197 interactive() 180 198
Note: See TracChangeset
for help on using the changeset viewer.