update to Debian 12 (2)
[debian6500.git] / master / opt / cluster / acq / etc / rc.local
CommitLineData
09d7a212 1#!/bin/bash
5316baff
LM
2#
3# rc.local
4#
5# This script is executed at the end of each multiuser runlevel.
6# Make sure that the script will "exit 0" on success or any other
7# value on error.
8#
9# In order to enable or disable this script just change the execution
10# bits.
5316baff 11
09d7a212
LM
12# check eth2-5 (issue with client blade)
13ip addr | awk '/: / {sub(/:/, "", $2); eth=$2} /inet / {print eth, $2}' > /root/ip.addr
14for i in $(seq 2 5); do
15 interface=eth$i
16 grep -q $interface /root/ip.addr || { ifdown $interface; ifup $interface; }
2c2423eb 17done
2c2423eb 18
a299db21
LM
19# remove acpi cpu frequence controler
20modprobe -r acpi_cpufreq
21
2c2423eb 22for i in $(seq 1 25); do
09d7a212 23 echo TRC6500
5316baff
LM
24done
25
26exit 0