source: npl/kernel/drbd8/boot.drbd @ c5c522c

gcc484ntopperl-5.22
Last change on this file since c5c522c 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
Line 
1#!/bin/bash
2#When booted from the installer cd in drbd mode, then we still need to install grub into the MBR!
3if [ -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
8fi
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.
13CURRENT_ID=`cat /sys/class/net/eth0/address`
14mkdir /etc/nodes 1> /dev/null 2> /dev/null
15mkdir /etc/nodes/$CURRENT_ID 1> /dev/null 2> /dev/null
16
17#delete old symlink and create new one.
18rm /etc/node 1> /dev/null 2> /dev/null
19ln -s /etc/nodes/$CURRENT_ID /etc/node 1> /dev/null 2> /dev/null
20
21exit 0
Note: See TracBrowser for help on using the repository browser.