Commit 659e6633 authored by Jondy Zhao's avatar Jondy Zhao

slapos-configure: refine code with csih_inform

parent b36f860d
This diff is collapsed.
...@@ -116,7 +116,7 @@ if ! netsh interface ipv6 show interface | grep -q "\\b${slapos_ifname}\\b" ; th ...@@ -116,7 +116,7 @@ if ! netsh interface ipv6 show interface | grep -q "\\b${slapos_ifname}\\b" ; th
ipwin install $WINDIR\\inf\\netloop.inf *msloop ${slapos_ifname} || ipwin install $WINDIR\\inf\\netloop.inf *msloop ${slapos_ifname} ||
csih_error "install network interface ${slapos_ifname} failed" csih_error "install network interface ${slapos_ifname} failed"
fi fi
ip -4 addr add $(echo ${ipv4_local_network} | sed -e "s%\.0/%.1/%g") dev $slapos_ifname || ip -4 addr add $(echo ${ipv4_local_network} | sed -e "s%\.0/%.1/%g") dev ${slapos_ifname} ||
csih_error "add ipv4 address failed" csih_error "add ipv4 address failed"
csih_inform "Configure slapos network OK" csih_inform "Configure slapos network OK"
...@@ -129,6 +129,7 @@ csih_inform "Starting configure IPv6 protocol ..." ...@@ -129,6 +129,7 @@ csih_inform "Starting configure IPv6 protocol ..."
netsh interface ipv6 show interface > /dev/null || \ netsh interface ipv6 show interface > /dev/null || \
netsh interface ipv6 install || \ netsh interface ipv6 install || \
csih_error "install IPv6 protocol failed" csih_error "install IPv6 protocol failed"
csih_inform "Configure IPv6 protocol OK" csih_inform "Configure IPv6 protocol OK"
echo "" echo ""
...@@ -231,6 +232,7 @@ csih_inform "************************************************************" ...@@ -231,6 +232,7 @@ csih_inform "************************************************************"
csih_inform "Configure slapos client and node OK" csih_inform "Configure slapos client and node OK"
echo "" echo ""
# ----------------------------------------------------------- # -----------------------------------------------------------
# Format slapos node # Format slapos node
# ----------------------------------------------------------- # -----------------------------------------------------------
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment