2 dynamicProcedureLibName=libanna_launcher_procedure_default_shared.so
4 echo "------------------------------------------------"
5 echo "Dynamic library selection for launcher procedure"
6 echo "------------------------------------------------"
9 rm -f $dynamicProcedureLibName
12 echo " (you could provide directly the path to the .so file)"
14 echo "Available options:"
16 find . -name "libanna_launcher_procedure_*_shared.so" > $tmpfile
18 for line in $(cat $tmpfile); do echo " $line" ; done
19 dflt=$(grep "^./default/" $tmpfile)
21 echo -n "Paste your selection [$dflt]: "
23 [ -z "$option" ] && option=$dflt
27 [ ! -f $option ] && { echo -e "\nInvalid file !\n" ; exit 1 ; }
28 option_bn=$(basename $option)
29 ln -sf $option $dynamicProcedureLibName
30 [ $? -ne 0 ] && { rm -f $dynamicProcedureLibName ; echo -e "\nInvalid file (must be a dynamic procedure library) !\n" ; exit 1 ; }
32 echo "Library enabled."
35 echo "IMPORTANT: remember to Re-Start the affected ADML instances"