Support for xtesting
[samplevnf.git] / VNFs / DPPD-PROX / helper-scripts / rapid / check_prox_system_setup.sh
index cca7f74..84e2f70 100755 (executable)
@@ -18,7 +18,6 @@ NCPUS="$(lscpu | egrep '^CPU\(s\):' | awk '{ print $2 }')"
 MAXCOREID="$((NCPUS-1))"
 
 filename="/etc/tuned/realtime-virtual-guest-variables.conf"
-#logfile="/home/centos/prox_system_setup.log"
 logfile="/opt/rapid/prox_system_setup.log"
 if [ -f "$filename" ]
 then
@@ -27,10 +26,12 @@ then
         case $line in
             isolated_cores=1-$MAXCOREID*)
                 echo "Isolated CPU(s) OK, no reboot: $line">>$logfile
-                sed -i 's/PubkeyAuthentication no/PubkeyAuthentication yes/g' /etc/ssh/sshd_config
-                service sshd restart
-                modprobe uio
-                insmod /opt/rapid/dpdk/build/kmod/igb_uio.ko
+                FILE=/opt/rapid/after_boot.sh
+                if test -f "$FILE"; then
+                  ("$FILE")
+                  echo "Executing: $FILE">>$logfile
+                fi
+                touch /opt/rapid/system_ready_for_rapid
                 exit 0
             ;;
             isolated_cores=*)