update to Debian 12 (2)
[debian6500.git] / master / opt / cluster / acq / etc / rc.local
1 #!/bin/bash
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.
11
12 # check eth2-5 (issue with client blade)
13 ip addr | awk '/: / {sub(/:/, "", $2); eth=$2} /inet / {print eth, $2}' > /root/ip.addr
14 for i in $(seq 2 5); do
15 interface=eth$i
16 grep -q $interface /root/ip.addr || { ifdown $interface; ifup $interface; }
17 done
18
19 # remove acpi cpu frequence controler
20 modprobe -r acpi_cpufreq
21
22 for i in $(seq 1 25); do
23 echo TRC6500
24 done
25
26 exit 0