Changeset 167
- Timestamp:
- 08/19/09 08:54:17 (14 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/configure
r166 r167 1800 1800 1801 1801 1802 ac_config_files="$ac_config_files Makefile src/pxeconfig src/pxeconfig d src/hexls examples/pxeconfigd.xinetd"1802 ac_config_files="$ac_config_files Makefile src/pxeconfig src/pxeconfig.py src/pxeconfigd src/hexls examples/pxeconfigd.xinetd" 1803 1803 1804 1804 cat >confcache <<\_ACEOF … … 2371 2371 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 2372 2372 "src/pxeconfig") CONFIG_FILES="$CONFIG_FILES src/pxeconfig" ;; 2373 "src/pxeconfig.py") CONFIG_FILES="$CONFIG_FILES src/pxeconfig.py" ;; 2373 2374 "src/pxeconfigd") CONFIG_FILES="$CONFIG_FILES src/pxeconfigd" ;; 2374 2375 "src/hexls") CONFIG_FILES="$CONFIG_FILES src/hexls" ;; -
trunk/configure.in
r166 r167 60 60 Makefile 61 61 src/pxeconfig 62 src/pxeconfig.py 62 63 src/pxeconfigd 63 64 src/hexls -
trunk/pxeconfig.conf
r124 r167 1 1 [DEFAULT] 2 ;pxe_config_dir : ./pxelinux.cfg 3 debug : 0 2 ;pxe_config_dir : ./pxelinux.cfg 3 debug : 0 4 ;client_script_hook : /usr/sara/sbin/pxefirewall-pre-install.sh 5 ;daemon_script_hook : /usr/sara/sbin/pxefirewall-post-install.sh -
trunk/src/pxeconfig.py.in
r166 r167 63 63 # import from the sara_python_modules 64 64 import AdvancedParser 65 import pxe_global 65 66 66 67 # Constants … … 70 71 START = 'start' 71 72 END = 'end' 72 VERSION = '3. 0.4'73 VERSION = '3.1.0' 73 74 74 75 class PxeConfig(Exception): … … 80 81 return self.msg 81 82 82 def ReadConfig(file): 83 """ 84 Parse the config file 85 """ 86 if not os.path.isfile(file): 87 error = 'File %s does not exist' %file 88 raise PxeConfig, error 89 90 config = ConfigParser.RawConfigParser() 91 try: 92 config.read(file) 93 except ConfigParser.MissingSectionHeaderError,detail: 94 raise PxeConfig, detail 95 96 # Not yet uses 97 # 98 #projects = {} 99 #for section in config.sections(): 100 # projects[section] = {} 101 # for option in config.options(section): 102 # projects[section][option] = config.get(section, option) 103 104 stanza = config.defaults() 105 return stanza 83 #def ReadConfig(file): 84 # """ 85 # Parse the config file 86 # """ 87 # if not os.path.isfile(file): 88 # error = 'File %s does not exist' %file 89 # raise PxeConfig, error 90 # 91 ## config = ConfigParser.RawConfigParser() 92 # try: 93 # config.read(file) 94 # except ConfigParser.MissingSectionHeaderError,detail: 95 # raise PxeConfig, detail 96 # 97 # # Not yet uses 98 # # 99 # #projects = {} 100 # #for section in config.sections(): 101 ## # projects[section] = {} 102 # # for option in config.options(section): 103 # # projects[section][option] = config.get(section, option) 104 # 105 # stanza = config.defaults() 106 # return stanza 107 # 106 108 107 109 def select_pxe_configfile():
Note: See TracChangeset
for help on using the changeset viewer.