fix unrecognized chars in genesis

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@16247 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
sjing 2013-05-13 07:54:44 +00:00
parent 7fd4933fe8
commit 8d2e4859fc
2 changed files with 19 additions and 18 deletions

View File

@ -1,2 +1,2 @@
echo "Setting Boot Manager for the next boot."
efibootmgr -c -l \\EFI\\redhat\\grub.efi -L Linux
echo "Setting Boot Manager for the next boot."
efibootmgr -c -l \\EFI\\redhat\\grub.efi -L Linux

View File

@ -1,16 +1,17 @@
. /tmp/post-install/variables.txt
echo "Updating hostname to $HOSTNAME"
sed -i "s/HOSTNAME=.*/HOSTNAME=$HOSTNAME/g" /etc/sysconfig/network
hostname $HOSTNAME
echo "Old ifcfg-$DEVICE is:"
cat /etc/sysconfig/network-scripts/ifcfg-$DEVICE
HWADDR=`ifconfig $DEVICE|grep HWaddr|awk '{print $5}'`
sed -i "s/HWADDR=.*/HWADDR="$HWADDR"/g" /etc/sysconfig/network-scripts/ifcfg-$DEVICE
sed -i "s/UUID=.*//g" /etc/sysconfig/network-scripts/ifcfg-$DEVICE
echo "New ifcfg-$DEVICE is:"
cat /etc/sysconfig/network-scripts/ifcfg-$DEVICE
#!/bin/bash
. /tmp/post-install/variables.txt
echo "Updating hostname to $HOSTNAME"
sed -i "s/HOSTNAME=.*/HOSTNAME=$HOSTNAME/g" /etc/sysconfig/network
hostname $HOSTNAME
echo "Old ifcfg-$DEVICE is:"
cat /etc/sysconfig/network-scripts/ifcfg-$DEVICE
HWADDR=`ifconfig $DEVICE|grep HWaddr|awk '{print $5}'`
sed -i "s/HWADDR=.*/HWADDR="$HWADDR"/g" /etc/sysconfig/network-scripts/ifcfg-$DEVICE
sed -i "s/UUID=.*//g" /etc/sysconfig/network-scripts/ifcfg-$DEVICE
echo "New ifcfg-$DEVICE is:"
cat /etc/sysconfig/network-scripts/ifcfg-$DEVICE