Merged.

On 8/7/2020 1:47 AM, Yu, Mingli wrote:
From: Mingli Yu <[email protected]>

Don't hardcode the path for the ifconfig command in case the path
for ifconfig on the system may be different from the hardcoded.

Signed-off-by: Mingli Yu <[email protected]>
---
  meta-cgl-common/recipes-cgl/ucarp/ucarp/vip-down.sh | 2 +-
  meta-cgl-common/recipes-cgl/ucarp/ucarp/vip-up.sh   | 2 +-
  2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta-cgl-common/recipes-cgl/ucarp/ucarp/vip-down.sh 
b/meta-cgl-common/recipes-cgl/ucarp/ucarp/vip-down.sh
index a431c32..27e0d2b 100644
--- a/meta-cgl-common/recipes-cgl/ucarp/ucarp/vip-down.sh
+++ b/meta-cgl-common/recipes-cgl/ucarp/ucarp/vip-down.sh
@@ -4,4 +4,4 @@ exec 2> /dev/null
  #/sbin/ip addr del "$2"/24 dev "$1"
# or alternatively:
-/sbin/ifconfig "$1":254 down
+ifconfig "$1":254 down
diff --git a/meta-cgl-common/recipes-cgl/ucarp/ucarp/vip-up.sh 
b/meta-cgl-common/recipes-cgl/ucarp/ucarp/vip-up.sh
index c1b8a4f..f81d578 100644
--- a/meta-cgl-common/recipes-cgl/ucarp/ucarp/vip-up.sh
+++ b/meta-cgl-common/recipes-cgl/ucarp/ucarp/vip-up.sh
@@ -4,4 +4,4 @@ exec 2> /dev/null
  #/sbin/ip addr add "$2"/24 dev "$1"
# or alternatively:
-/sbin/ifconfig "$1":254 "$2" netmask 255.255.255.0
+ifconfig "$1":254 "$2" netmask 255.255.255.0



--
Jeremy A. Puhlman
[email protected]

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#50248): https://lists.yoctoproject.org/g/yocto/message/50248
Mute This Topic: https://lists.yoctoproject.org/mt/76045408/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub  
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to