#!/bin/bash
+### make sure this output shows up in the console
+
+exec 2>&1
+exec > /dev/console
+
+###
+. /etc/init.d/pl_functions
+
. /tmp/planet.cnf
# Run gpg once to create default options
if [[ $contact_count != 0 ]]; then
- if [[ $on_backup_server == 1 ]]; then
- echo $(date "+%H:%M:%S") " pl_boot: attempting to fetch script from backup server in 30s"
- else
- echo $(date "+%H:%M:%S") " pl_boot: attempting to fetch script from primary server in 30s"
- fi
+ echo $(date "+%H:%M:%S") " pl_boot: next attempt in 30s, to fetch script from server at $CONNECT_BOOT_SERVER"
/bin/sleep 30
fi
+ # June 2015 : using --tlsv1 instead of sslv3 that should be available
+ # on all myplc from f14 inclusive
# assemble the curl transaction
CURL_CMD="/usr/bin/curl \
--connect-timeout 60 \
--form nonce=</tmp/nonce \
--location \
--output $UNVERIFIED_SCRIPT \
- --sslv3 \
+ --tlsv1 \
--silent \
--show-error \
--fail \
echo $(date "+%H:%M:%S") " we recommend checking your DNS settings. If you cannot, then "
echo $(date "+%H:%M:%S") " please double check your network settings registered at PLC and "
echo $(date "+%H:%M:%S") " stored on this Boot Image."
- for file in $(ls /etc/sysconfig/network-scripts/ifcfg-eth* /etc/resolv.conf) ; do
- echo $(date "+%H:%M:%S") contents of $file :
- cat $file
- echo $(date "+%H:%M:%S") end of $file :
- done
;;
60)
echo $(date "+%H:%M:%S") " This error likely indicates that the hardware clock is likely not set "
echo $(date "+%H:%M:%S") " with as much detail as possible."
;;
esac
+ # in any case display as much info as we can (see pl_functions)
+ pl_network_sanity_checks
+ # retry
continue
fi
elif [ -n "$DISCONNECTED_OPERATION" ]; then