Commit 6656d35b authored by Jondy Zhao's avatar Jondy Zhao

Wait ipv6 work before run slapformat

parent 0ef1c381
...@@ -16,18 +16,18 @@ ifname=re6stnet-lo ...@@ -16,18 +16,18 @@ ifname=re6stnet-lo
# Run re6stnet # Run re6stnet
echo "Start re6stnet ..." echo "Start re6stnet ..."
(cd /etc/re6stnet; re6stnet @re6stnet.conf -I $ifname -i $ifname &) (cd /etc/re6stnet; re6stnet @re6stnet.conf --ovpnlog -I $ifname -i $ifname &)
echo "Start re6stent (pid:$!)in the background OK." echo "Start re6stent in the background OK."
# echo "Waiting re6stent network work ..." echo "Waiting re6stent network work ..."
# while true ; do while true ; do
# ping6 slap.vifib.com > /dev/null && break ping6 slap.vifib.com && break
# done done
# echo "re6stnet network OK." echo "re6stnet network OK."
# Run slapformat # Run slapformat
echo "Initializing SlapOS Node ..." echo "Initializing SlapOS Node ..."
/opt/slapos/bin/slapos node format -c --now /opt/slapos/bin/slapos node format -cv --now
if (( $? )) ; then if (( $? )) ; then
echo "Initialize SlapOS Node failed." echo "Initialize SlapOS Node failed."
else else
......
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