SHA256
1
0
forked from pool/xen
OBS User unknown
2009-06-12 18:43:24 +00:00
committed by Git OBS Bridge
parent 0bb51565d6
commit 5be0f1bcb4
25 changed files with 466 additions and 131 deletions

View File

@@ -679,7 +679,7 @@ then
#
if [ -n "$MAC" ]
then
if [ "$SLE10" -a -d etc/sysconfig/network/ ]
if [ -d etc/sysconfig/network/ ]
then
echo "Changing the Network configuration in the newly copied image."
pushd "etc/sysconfig/network/" > /dev/null
@@ -694,7 +694,13 @@ then
losetup -d $loopdev
exit 1
fi
mv -f "$ETH0" ifcfg-eth-id-$MAC
if [ "$SLE10" ]
then
mv -f "$ETH0" ifcfg-eth-id-$MAC
else
sed -i -e "s,^LLADDR=.*$,LLADDR=\'$MAC\'," \
ifcfg-eth0
fi
popd > /dev/null
fi
@@ -732,7 +738,7 @@ then
sed -i -e "s,^IPADDR=.*$,IPADDR=$IP," \
ifcfg-eth-id-$MAC
else
sed -i -e "s,^IPADDR=.*$,IPADDR=$IP/$MASK," \
sed -i -e "s,^IPADDR=.*$,IPADDR=$IP/$MASK," \
ifcfg-eth0
fi
popd > /dev/null