Changes between Version 20 and Version 21 of GIMIv3/Documentation
- Timestamp:
- 07/01/14 14:08:05 (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
GIMIv3/Documentation
v20 v21 137 137 138 138 == Postboot scripts == 139 140 === InstaGENI === 141 142 {{{ 143 #!/bin/bash 144 145 read -r slice1 </var/emulab/boot/nickname 146 slicename=$(echo $slice1 | cut -f2 -d.) 147 148 host1=$(hostname) 149 150 host=$(echo $host1 | cut -f1 -d.) 151 152 slice=`ruby -e "print '$slicename'[/[^+]*$/]"` 153 echo $host > /etc/hostname 154 /bin/hostname -F /etc/hostname 155 echo 'amqp://emmy9.casa.umass.edu' > /var/omf/communication_url 156 echo $host-$slice > /var/omf/node_uri 157 restart omf_rc 158 159 }}} 139 160 [Divya] 140 161