Changeset 25
- Timestamp:
- 11/29/02 17:13:13 (20 years ago)
- Location:
- trunk/pxeconfig
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/pxeconfig/changelog
r24 r25 1 Always edit this file when changes are commited: 1 Always edit this file when changes are commited:: 2 2 3 3 $Log: changelog,v $ 4 Revision 1.21 2002/11/29 16:13:13 sscpbas 5 pxeconfigd: 6 Added version flag (-V, --version) 7 4 8 Revision 1.20 2002/11/29 12:46:05 sscpbas 5 9 pxeconfig: -
trunk/pxeconfig/pxeconfigd
r14 r25 36 36 37 37 CVS info 38 $Date: 2002/ 08/15 06:36:47$39 $Revision: 1. 5$38 $Date: 2002/11/29 16:13:13 $ 39 $Revision: 1.6 $ 40 40 """ 41 41 import time … … 56 56 STDIN=0 57 57 STDOUT=1 58 SHORTOPT_LIST=' d:'59 LONGOPT_LIST=[' directory=']58 SHORTOPT_LIST='Vd:' 59 LONGOPT_LIST=['version', 'directory='] 60 60 61 61 PXE_CONF_DIR = '/tftpboot/pxelinux.cfg' 62 VERSION = '0.4.1' 62 63 63 64 # Give the current time … … 133 134 sys.exit(1) 134 135 135 if opts: 136 opt, PXE_CONF_DIR = opts[0] 136 for opt, value in opts: 137 138 if opt in ['-d', '--directory']: 139 if not os.path.isdir(value): 140 os.write(STDOUT, "PXE booting is not configured") 141 sys.exit(1) 142 else: 143 PXE_CONF_DIR = value 144 145 elif opt in ['-V', '--version']: 146 print VERSION 147 sys.exit(0) 137 148 138 149 def server(): … … 140 151 """ 141 152 check_args(sys.argv) 142 143 if not os.path.isdir(PXE_CONF_DIR):144 os.write(STDOUT, "PXE booting is not configured")145 sys.exit(1)146 147 153 handleConnection() 148 154
Note: See TracChangeset
for help on using the changeset viewer.