mirror of
https://github.com/ipxe/ipxe
synced 2025-12-12 23:15:10 +03:00
Force ordering of commands in help list.
This commit is contained in:
@@ -143,11 +143,6 @@ static int ifopen_exec ( int argc, char **argv ) {
|
|||||||
return ifcommon_exec ( ifopen_payload, "Open", argc, argv );
|
return ifcommon_exec ( ifopen_payload, "Open", argc, argv );
|
||||||
}
|
}
|
||||||
|
|
||||||
struct command ifopen_command __command = {
|
|
||||||
.name = "ifopen",
|
|
||||||
.exec = ifopen_exec,
|
|
||||||
};
|
|
||||||
|
|
||||||
/* "ifclose" command */
|
/* "ifclose" command */
|
||||||
|
|
||||||
static int ifclose_payload ( struct net_device *netdev ) {
|
static int ifclose_payload ( struct net_device *netdev ) {
|
||||||
@@ -159,11 +154,6 @@ static int ifclose_exec ( int argc, char **argv ) {
|
|||||||
return ifcommon_exec ( ifclose_payload, "Close", argc, argv );
|
return ifcommon_exec ( ifclose_payload, "Close", argc, argv );
|
||||||
}
|
}
|
||||||
|
|
||||||
struct command ifclose_command __command = {
|
|
||||||
.name = "ifclose",
|
|
||||||
.exec = ifclose_exec,
|
|
||||||
};
|
|
||||||
|
|
||||||
/* "ifstat" command */
|
/* "ifstat" command */
|
||||||
|
|
||||||
static int ifstat_payload ( struct net_device *netdev ) {
|
static int ifstat_payload ( struct net_device *netdev ) {
|
||||||
@@ -176,7 +166,18 @@ static int ifstat_exec ( int argc, char **argv ) {
|
|||||||
argc, argv );
|
argc, argv );
|
||||||
}
|
}
|
||||||
|
|
||||||
struct command ifstat_command __command = {
|
/** Interface management commands */
|
||||||
.name = "ifstat",
|
struct command ifmgmt_commands[] __command = {
|
||||||
.exec = ifstat_exec,
|
{
|
||||||
|
.name = "ifopen",
|
||||||
|
.exec = ifopen_exec,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
.name = "ifclose",
|
||||||
|
.exec = ifclose_exec,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
.name = "ifstat",
|
||||||
|
.exec = ifstat_exec,
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user