The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 807 - File: showthread.php PHP 7.3.15 (Linux)
File Line Function
/showthread.php 807 errorHandler->error





Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Setting goto with whitespace?
2015-07-13, 02:11
Post: #1
Setting goto with whitespace?
Hello!

I'm trying to configure iPXE to do certain things when it detects a certain model device. For this purpose i'm using the ${product} variable.

For example, I'd implement something like:

Quote:goto ${product} || goto continue

:Lenovo T400S
do_something_here
goto continue

:continue
do_other_stuff_here

For this example if I PXEboot a T400, iPXE would read the ${product} variable and then goes to the label for the T400. If I PXEboot anything else it would just goto the continue label instead.

The problem is that I don't think that the label accepts whitespaces. I've tried implementing this instead:

Quote:set t400 Lenovo T400s
goto ${product} || goto continue

:${t400}
do_something_here
goto continue

:continue
do_other_stuff_here

Unfortunately that doesn't seem to work either.

Does anyone have any hints as to what I'm currently doing wrong here?
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Setting goto with whitespace? - perestroika - 2015-07-13 02:11



User(s) browsing this thread: 1 Guest(s)