Hi,
Extends pxe command:
-i (--info) now shows mac and dhcp options
-e (--export) export a dhcp option as grub variable, for example:
pxe -e 150
Set variable PXE_150 to the value of dhcp option 150, you can then use
command like source to load it:
source ${PXE_150}
New command pxecfg, which allows you to run a command based on current ip/mac:
pxecfg /pxe.txt
Here is an example config file:
pxe {
ip {
192 {
168.2 {
command = "echo ip 192.168.2.*"
}
169 {
command = "echo ip 192.169.*.*"
}
command = "echo ip 192.*.*.*"
}
}
mac {
00-0c-29-1a {
command = "echo mac 00-0c-29-1a-*-*"
}
command = "echo mac *-*-*-*-*-*"
}
}
The config file should be self-explaining, you can use \n to specify
multiple line of commands:
command = "linux /vmlinuz\ninitrd /initrd\nboot"
Source is at http://github.com/bean123/grub/, master branch.
--
Bean
gitgrub home: http://github.com/grub/grub/
my fork page: http://github.com/bean123/grub/
_______________________________________________
Grub-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/grub-devel