mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-05-31 18:16:39 +00:00
52 lines
983 B
Bash
Executable File
52 lines
983 B
Bash
Executable File
#!/bin/bash
|
|
#
|
|
# There are functions to handle iprconfig commands.
|
|
#
|
|
iprconfig="iprconfig"
|
|
|
|
########################################
|
|
#
|
|
# iprconfig show-config
|
|
#
|
|
########################################
|
|
function cmd_show_config {
|
|
local lines=""
|
|
lines=`$iprconfig -c show-config`
|
|
echo "$lines"
|
|
}
|
|
|
|
########################################
|
|
#
|
|
# iprconfig show-ioas
|
|
#
|
|
########################################
|
|
function cmd_show_ioas {
|
|
local lines=""
|
|
lines=`$iprconfig -c show-ioas`
|
|
echo "$lines"
|
|
}
|
|
|
|
########################################
|
|
#
|
|
# iprconfig -c show-details
|
|
#
|
|
########################################
|
|
function cmd_show_details {
|
|
local lines=""
|
|
local dev=$*
|
|
lines=`$iprconfig -c show-details $dev`
|
|
echo "$lines"
|
|
}
|
|
|
|
########################################
|
|
#
|
|
# iprconfig -c show-arrays
|
|
#
|
|
########################################
|
|
function cmd_show_arrays {
|
|
local lines=""
|
|
lines=`$iprconfig -c show-arrays`
|
|
echo "$lines"
|
|
}
|
|
|