perl-5.22
Last change
on this file since f651f1e was
c5c522c,
checked in by Edwin Eefting <edwin@datux.nl>, 8 years ago
|
initial commit, transferred from cleaned syn3 svn tree
|
-
Property mode set to
100644
|
File size:
832 bytes
|
Rev | Line | |
---|
[c5c522c] | 1 | #!/bin/bash |
---|
| 2 | #When booted from the installer cd in drbd mode, then we still need to install grub into the MBR! |
---|
| 3 | if [ -f /proc/drbd ] && grep cdroot /proc/cmdline; then |
---|
| 4 | syn3-install-bootloader |
---|
| 5 | splashinfo "Redundancy installation finshed, rebooting..." |
---|
| 6 | #reboot right away to make things easier for the administrator |
---|
| 7 | reboot |
---|
| 8 | fi |
---|
| 9 | |
---|
| 10 | #For clustering file to node attacher via an harware ID. The ID we are using is the MAC address of the interface eth0. |
---|
| 11 | # |
---|
| 12 | #get the hardware id from the node and build a directory named ID. |
---|
| 13 | CURRENT_ID=`cat /sys/class/net/eth0/address` |
---|
| 14 | mkdir /etc/nodes 1> /dev/null 2> /dev/null |
---|
| 15 | mkdir /etc/nodes/$CURRENT_ID 1> /dev/null 2> /dev/null |
---|
| 16 | |
---|
| 17 | #delete old symlink and create new one. |
---|
| 18 | rm /etc/node 1> /dev/null 2> /dev/null |
---|
| 19 | ln -s /etc/nodes/$CURRENT_ID /etc/node 1> /dev/null 2> /dev/null |
---|
| 20 | |
---|
| 21 | exit 0 |
---|
Note: See
TracBrowser
for help on using the repository browser.