fix two silly bugs
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2752 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
3a0dd3bece
commit
95e0cfcb50
@ -35,7 +35,7 @@ if [[ $OSTYPE = linux* ]]; then
|
||||
SIP=`grep -h DHCPSID /var/lib/dhcpcd/*.info|awk -F= '{print $2}'|tail -n 1`
|
||||
fi
|
||||
#update SIP for SLES11
|
||||
if [ $OSVER=='sles11' ]; then
|
||||
if [ "$OSVER" = "sles11" ]; then
|
||||
SIP=`echo $SIP |awk -F\' '{print $2}'` #trim '
|
||||
fi
|
||||
|
||||
@ -93,8 +93,8 @@ fi
|
||||
rpm -q zypper
|
||||
if [ $? -eq 0 ]; then
|
||||
#use zypper
|
||||
if [ $OSVER=='sles11' ]; then
|
||||
zypper ar ftp://$SIP/post/otherpkgs/$OSVER/$ARCH/1 otherpkgs
|
||||
if [ "$OSVER" = "sles11" ]; then
|
||||
zypper ar ftp://$SIP/post/otherpkgs/$OSVER/$ARCH/1 otherpkgs
|
||||
else
|
||||
zypper sa ftp://$SIP/post/otherpkgs/$OSVER/$ARCH/1
|
||||
fi
|
||||
|
@ -24,7 +24,7 @@ if [ -z "$SIP" ]; then
|
||||
fi
|
||||
|
||||
#echo "SIP=$SIP"
|
||||
if [ $OSVER=='11' ]; then
|
||||
if [ "$OSVER" = "11" ]; then
|
||||
SIP=`echo $SIP |awk -F\' '{print $2}'` #trim '
|
||||
fi
|
||||
|
||||
@ -97,7 +97,7 @@ if [ $# -eq 0 ]; then
|
||||
echo "updateflag.awk \$MASTER 3002 \"installstatus booted\"" >> /tmp/mypostscript
|
||||
fi
|
||||
|
||||
if [ $OSVER=='11' ]; then #for SLES11
|
||||
if [ "$OSVER" = "11" ]; then #for SLES11
|
||||
DHCP_TMP=`sed 's/\(DHCPINTERFACES=\)\(.*\)$/\1"\2"/' /tmp/mypostscript`
|
||||
echo "$DHCP_TMP" > /tmp/mypostscript
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user