711f5de8e5
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7190 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
18 lines
664 B
Plaintext
18 lines
664 B
Plaintext
<post-scripts config:type="list">
|
|
<script>
|
|
<filename>post.sh</filename>
|
|
<interpreter>shell</interpreter>
|
|
<source>
|
|
<![CDATA[
|
|
#!/bin/sh
|
|
|
|
# Set MAC address
|
|
cat /etc/sysconfig/network/ifcfg-replace_device | grep -v "LLADDR" | grep -v "UNIQUE" > /tmp/ifcfg-replace_device
|
|
echo "LLADDR='replace_lladdr'" >> /tmp/ifcfg-replace_device
|
|
echo "UNIQUE=''" >> /tmp/ifcfg-replace_device
|
|
echo "NAME='OSA Express Network card (replace_nic_addr)'" >> /tmp/ifcfg-replace_device
|
|
cat /tmp/ifcfg-replace_device > /etc/sysconfig/network/ifcfg-replace_device
|
|
]]>
|
|
</source>
|
|
</script>
|
|
</post-scripts> |