Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
cmd:read [2013/03/07 13:32]
mcb30
cmd:read [2021/04/23 11:40] (current)
mcb30
Line 3: Line 3:
 ===== Synopsis ===== ===== Synopsis =====
  
-    read <​setting>​+    read [--timeout <​timeout>​] ​<​setting>​
  
 ===== Examples ===== ===== Examples =====
Line 17: Line 17:
     echo -n Default gateway: && read net0/​gateway     echo -n Default gateway: && read net0/​gateway
  
-=== Allow user to override DNS server specified via DHCP ===+=== Allow user to edit a kernel command line before booting ​===
  
-    ​dhcp +    ​set cmdline selinux=0 console=ttyS0,​115200n8 console=tty0 
-    echo -n Use DNS server: ${} +    echo -n Kernel command line: ${} 
-    read dns+    read cmdline 
 +    chain http://​my.web.server/​vmlinuz ${cmdline}
  
 ===== Description ===== ===== Description =====
  
-Set value of the specified configuration [[:​settings|setting]] to the value provided by the user.+Set value of the specified configuration [[:​settings|setting]] to the value provided by the user, waiting for the specified timeout (in milliseconds). ​ If no timeout is explicitly specified, or if a zero timeout is specified, then iPXE will wait indefinitely.
  
 The value will be interpreted according to the type specified as part of the setting name.  For example, to prompt the user to enter a configuration setting for an NTP server address (DHCP option 42): The value will be interpreted according to the type specified as part of the setting name.  For example, to prompt the user to enter a configuration setting for an NTP server address (DHCP option 42):
Line 36: Line 37:
  
 ^ Success ​  | The configuration setting was applied successfully ​     | ^ Success ​  | The configuration setting was applied successfully ​     |
-^ Failure ​  | The configuration setting was not applied successfully ​ |+^ Failure ​  | The configuration setting was not applied successfully, or no key was pressed within the timeout period ​ |
  
 ===== See also ===== ===== See also =====
cmd/read.1362663175.txt.gz · Last modified: 2013/03/07 13:32 by mcb30
Recent changes RSS feed CC Attribution-Share Alike 4.0 International Driven by DokuWiki
All uses of this content must include an attribution to the iPXE project and the URL https://ipxe.org
References to "iPXE" may not be altered or removed.