1 Star 0 Fork 23

tmacbb/initscripts

forked from src-openEuler/initscripts 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
exec-udevadm-settle-when-network-start.patch 712 Bytes
一键复制 编辑 原始数据 按行查看 历史
dogsheng 提交于 2019-12-25 15:50 +08:00 . Package init
From 4d6de26edd04640c326a5117032f9a088353be58 Mon Sep 17 00:00:00 2001
From: chenzhen <chenzhen44@huawei.com>
Date: Thu, 21 Nov 2019 12:13:27 -0500
Subject: [PATCH] exec udevadm settle when network start
---
etc/rc.d/init.d/network | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/etc/rc.d/init.d/network b/etc/rc.d/init.d/network
index fa371ca..dfe5b83 100755
--- a/etc/rc.d/init.d/network
+++ b/etc/rc.d/init.d/network
@@ -61,6 +61,10 @@ export DEPRECATION_WARNING_ISSUED='true'
# See how we were called.
case "$1" in
start)
+ if [ -x /usr/sbin/udevadm ]; then
+ /usr/sbin/udevadm settle
+ fi
+
[ "$EUID" != "0" ] && exit 4
rc=0
# IPv6 hook (pre IPv4 start)
--
2.19.1
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/tmacbb/initscripts.git
git@gitee.com:tmacbb/initscripts.git
tmacbb
initscripts
initscripts
master

搜索帮助