diff --git a/xCAT/postscripts/routeop b/xCAT/postscripts/routeop index f5687f6d0..4e5501592 100755 --- a/xCAT/postscripts/routeop +++ b/xCAT/postscripts/routeop @@ -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