#!/usr/bin/env bash
##
-## Copyright (c) 2010-2019 Intel Corporation
+## Copyright (c) 2010-2020 Intel Corporation
##
## Licensed under the Apache License, Version 2.0 (the "License");
## you may not use this file except in compliance with the License.
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
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=*)