ucarp: don't hardcode the path for ifconfig
PATCH 1/1 ucarp: don't hardcode the path for ifconfig
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(-)
meta-cgl-common/recipes-cgl/ucarp/ucarp/vip-down.sh +1 -1
@@ -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
meta-cgl-common/recipes-cgl/ucarp/ucarp/vip-up.sh +1 -1
@@ -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
Signature · 1 line
2.26.2
Merged.
Quoted 33 lines · Mingli
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(-)meta-cgl-common/recipes-cgl/ucarp/ucarp/vip-down.sh +1
-1@@ -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 downmeta-cgl-common/recipes-cgl/ucarp/ucarp/vip-up.sh +1
-1@@ -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
Signature · 2 lines
Jeremy A. Puhlman [email protected]