X-Git-Url: https://git.teslayout.com/public/public/public/?a=blobdiff_plain;f=example%2Fdiameter%2Flauncher%2Fresources%2Fscripts%2Fselect_dynlib.sh;h=0308ca9e35df68dbda98e03f832e71230c9361ba;hb=5406b19bdbfe101b264f8c4d878392e2916b8f9d;hp=40a00722993521fbe0f2731ae6feb0628b87f714;hpb=61f1340da3cae5159d2e3bc14fc47c6d4bf9453e;p=anna.git diff --git a/example/diameter/launcher/resources/scripts/select_dynlib.sh b/example/diameter/launcher/resources/scripts/select_dynlib.sh index 40a0072..0308ca9 100755 --- a/example/diameter/launcher/resources/scripts/select_dynlib.sh +++ b/example/diameter/launcher/resources/scripts/select_dynlib.sh @@ -1,18 +1,19 @@ #!/bin/bash +dynamicProcedureLibName=libanna_launcher_procedure_default_shared.so echo echo "------------------------------------------------" echo "Dynamic library selection for launcher procedure" echo "------------------------------------------------" cd $(dirname $0) option=$1 -rm -f libanna_dynamicLauncherProcedure.so +rm -f $dynamicProcedureLibName if [ -z "$option" ] then echo " (you could provide directly the path to the .so file)" echo echo "Available options:" tmpfile=$(mktemp) - find . -name "*.so" > $tmpfile + find . -name "libanna_launcher_procedure_*_shared.so" > $tmpfile echo for line in $(cat $tmpfile); do echo " $line" ; done dflt=$(grep "^./default/" $tmpfile) @@ -24,8 +25,15 @@ then fi [ ! -f $option ] && { echo -e "\nInvalid file !\n" ; exit 1 ; } -ln -sf $option libanna_dynamicLauncherProcedure.so +option_bn=$(basename $option) +ln -sf $option $dynamicProcedureLibName +[ $? -ne 0 ] && { rm -f $dynamicProcedureLibName ; echo -e "\nInvalid file (must be a dynamic procedure library) !\n" ; exit 1 ; } echo -echo "Library enabled" +echo "Library enabled." +echo +echo +echo "IMPORTANT: remember to Re-Start the affected ADML instances:" +echo +echo " pkill -9 ADML ; ./run.sh" echo