2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-22 03:32:04 +00:00

fix routeop does not use xcatlib.sh for issue 3359 (#3377)

* routeop does not use xcatlib.sh for issue 3359

* enhanced based on comments
This commit is contained in:
Yuan Bai 2017-07-04 14:59:06 +08:00 committed by yangsong
parent 55bdc98955
commit 2c97eded50

View File

@ -23,10 +23,11 @@
#=cut
#-------------------------------------------------------------------------------
if [ "$(uname -s|tr 'A-Z' 'a-z')" = "linux" ];then
str_dir_name=`dirname $0`
. $str_dir_name/xcatlib.sh
([ -f $str_dir_name/xcatlib.sh ] && . $str_dir_name/xcatlib.sh) || \
([ -f /install/postscripts/xcatlib.sh ] && . /install/postscripts/xcatlib.sh) || \
([ -f /xcatpost/xcatlib.sh ] && . /xcatpost/xcatlib.sh)
fi
op=$1