124 Star 0 Fork 18

src-openEuler/resource-agents

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
backport-IPaddr2-Fix-bringing-up-device.patch 715 Bytes
一键复制 编辑 原始数据 按行查看 历史
From 4af605b8df2437481431f7478fa53238b73a1d92 Mon Sep 17 00:00:00 2001
From: Alex Hermann <[email protected]>
Date: Fri, 26 Jul 2024 17:12:06 +0200
Subject: [PATCH] IPaddr2: Fix bringing up device
The `dev` keyword is sometimes required.
---
heartbeat/IPaddr2 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/heartbeat/IPaddr2 b/heartbeat/IPaddr2
index fb061609..c53356a9 100755
--- a/heartbeat/IPaddr2
+++ b/heartbeat/IPaddr2
@@ -712,7 +712,7 @@ add_interface () {
ocf_run $cmd || return $OCF_ERR_GENERIC
msg="Bringing device $iface up"
- cmd="$IP2UTIL link set $iface up"
+ cmd="$IP2UTIL link set dev $iface up"
ocf_log info "$msg"
ocf_run $cmd || return $OCF_ERR_GENERIC
--
2.25.1
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/resource-agents.git
[email protected]:src-openeuler/resource-agents.git
src-openeuler
resource-agents
resource-agents
master

搜索帮助