mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-06-04 12:30:10 +00:00
Add extra debug output to confignetwork script
This commit is contained in:
parent
c6a8adeacd
commit
1edc9c91ac
@ -756,9 +756,12 @@ function check_brctl() {
|
||||
function check_and_set_device_managed() {
|
||||
devname=$1
|
||||
rc=1
|
||||
log_info "check_and_set_device_managed for device $devname"
|
||||
$nmcli device show $devname >/dev/null 2>/dev/null
|
||||
if [ $? -ne 0 ]; then
|
||||
log_error "Device $devname not found"
|
||||
# Could not find the device we wanted. Display all devices
|
||||
$nmcli device show
|
||||
else
|
||||
$nmcli -g GENERAL.STATE device show $devname|grep unmanaged >/dev/null 2>/dev/null
|
||||
if [ $? -eq 0 ]; then
|
||||
|
Loading…
x
Reference in New Issue
Block a user