#!/bin/bash # # rc.local # # This script is executed at the end of each multiuser runlevel. # Make sure that the script will "exit 0" on success or any other # value on error. # # In order to enable or disable this script just change the execution # bits. # check eth2-5 (issue with client blade) ip addr | awk '/: / {sub(/:/, "", $2); eth=$2} /inet / {print eth, $2}' > /root/ip.addr for i in $(seq 2 5); do interface=eth$i grep -q $interface /root/ip.addr || { ifdown $interface; ifup $interface; } done # remove acpi cpu frequence controler modprobe -r acpi_cpufreq for i in $(seq 1 25); do echo TRC6500 done exit 0