「インストール - Zsh」の版間の差分

ナビゲーションに移動 検索に移動
254行目: 254行目:
     else
     else
       echo "Too many arguments!"
       echo "Too many arguments!"
    fi
}
# KVMの起動
function startkvm
{
    KVM_STATUS=$(sudo systemctl status libvirtd | grep "Active:" | grep -ie "dead")
    if [ -n "KVM_STATUS" ]; then
      sudo systemctl start libvirtd
    fi
    NETWORK_STATUS=$(sudo virsh net-info default | grep -ie "起動中" -ie "Active" | grep -ie "no")
    if [ -n "$NETWORK_STATUS" ]; then
      sudo virsh net-start default
     fi
     fi
  }
  }

案内メニュー