- Timestamp:
- 02/19/02 10:38:10 (22 years ago)
- Location:
- trunk/pxeconfig
- Files:
-
- 4 added
- 1 deleted
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/pxeconfig/changelog
r2 r3 1 1 Always edit this file when changes are commited: 2 2 3 4 3 5 $Log: changelog,v $ 4 Revision 1.1 2002/02/18 15:02:00 sscpbas 5 Initial revision 6 Revision 1.2 2002/02/19 09:38:10 sscpbas 7 Added command line option to specifiy where the pxe config directory resides. 8 This is for client ans server side. 6 9 10 Added some info about the package such as a READMEE, AUTHORS and LICENSE.SARA 11 file. 12 13 Revision 1.1.1.1 2002/02/18 15:02:00 sscpbas 14 Initial release 15 -
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 -
trunk/pxeconfig/pxeconfigd
r2 r3 4 4 Date : 12 February 2002 5 5 Desc. : This script is used to control how a node is booted with PXE 6 enabled network cards. The PC boots starts and fetch a pxe 7 config file which tells how the PC must boot. This daemon 8 enables a client to remove his pxe-config file. It then uses 9 the DEFAULT one. 6 enabled network cards. The node boots and fetch a pxe 7 config file which tells how the node must boot. This daemon 8 enables a client to remove his/here pxe config file. With the 9 next boot it will use the default one. 10 11 command line option: 12 -d/--directory <dir> 13 Where <dir> is the directory where the pxe config files reside. 10 14 11 15 Note: … … 13 17 14 18 CVS info 15 $Date: 2002/02/1 8 15:02:00 $16 $Revision: 1. 1$19 $Date: 2002/02/19 09:38:10 $ 20 $Revision: 1.2 $ 17 21 """ 18 22 import time … … 22 26 import string 23 27 import syslog 28 import getopt 24 29 25 30 # DEBUG … … 32 37 STDIN=0 33 38 STDOUT=1 39 SHORTOPT_LIST='d:' 40 LONGOPT_LIST=['directory='] 34 41 35 42 PXE_CONF_DIR = '/tftpboot/pxelinux.cfg' … … 94 101 sys.exit(0) 95 102 103 def check_args(argv): 104 """ 105 Must we use another directory for the PXE configuration 106 """ 107 try: 108 opts, args = getopt.getopt(argv[1:], SHORTOPT_LIST, LONGOPT_LIST) 109 except getopt.error, detail: 110 print __doc__ 111 print detail 112 sys.exit(1) 113 114 if opts: 115 opt, PXE_CONFIG_DIR = opts[0] 116 117 118 119 96 120 97 121 def server(): 98 122 """Start the daemon 99 123 """ 124 check_args(sys.argv) 100 125 101 126 if not os.path.isdir(PXE_CONF_DIR):
Note: See TracChangeset
for help on using the changeset viewer.