1 #include <gpxe/netdevice.h>
2 #include <gpxe/command.h>
3 #include <hci/ifmgmt_cmd.h>
6 FILE_LICENCE ( GPL2_OR_LATER );
8 static int startpxe_payload ( struct net_device *netdev ) {
9 if ( netdev->state & NETDEV_OPEN )
10 pxe_activate ( netdev );
14 static int startpxe_exec ( int argc, char **argv ) {
15 return ifcommon_exec ( argc, argv, startpxe_payload,
19 static int stoppxe_exec ( int argc __unused, char **argv __unused ) {
24 struct command pxe_commands[] __command = {
27 .exec = startpxe_exec,