Revision a1471122
Added by Donato Florio over 6 years ago
| clientScripts/clientScript | ||
|---|---|---|
| 8 | 8 |
shutdown -r now |
| 9 | 9 |
fi |
| 10 | 10 |
|
| 11 |
|
|
| 12 |
if [ -e /root/cluster ];then |
|
| 13 |
clusterJoin="$(cat /root/cluster)" |
|
| 14 |
fi |
|
| 15 |
|
|
| 16 |
|
|
| 11 | 17 |
if [ -e /root/join ];then |
| 18 |
# Following dhclient was necessary inside a virtual(box) environment. Not sure if needed anymore. In case it can be removed or commented. |
|
| 12 | 19 |
dhclient $myNic |
| 13 | 20 |
screen -d -m -S XY |
| 14 |
screen -S XY -X stuff "fuss-client -av && rm /root/join ; reboot\n" |
|
| 21 |
screen -S XY -X stuff "fuss-client -av $clusterJoin && rm /root/join ; reboot\n"
|
|
| 15 | 22 |
else |
| 16 | 23 |
rm /etc/rc.local |
| 17 | 24 |
rm /root/clientScript |
| 18 | 25 |
rm -fr /root/.ssh |
| 19 |
|
|
| 26 |
rm /root/cluster |
|
| 20 | 27 |
fi |
| 21 | 28 |
|
| 22 | 29 |
|
Also available in: Unified diff
Various modifications.