verbose-message "pl_boot: got request to cancel boot, exiting"
exit 0
fi
-
+
if [[ $contact_count -ge $ATTEMPTS_BEFORE_BACKUP ]]; then
contact_count=0
if [[ $contact_count != 0 ]]; then
verbose-message "pl_boot: next attempt in 30s, to fetch script from server at $CONNECT_BOOT_SERVER"
- /bin/sleep 30
+ /bin/sleep 30
fi
# June 2015 : using --tlsv1 instead of sslv3 that should be available
verbose-message "with as much detail as possible."
;;
esac
- # in any case display as much info as we can (see pl_functions)
- verbose-forensics "after curl"
- # retry
+ # in any case display as much info as we can (see pl_functions)
+ verbose-forensics "after curl"
+ # retry
continue
fi
elif [ -n "$DISCONNECTED_OPERATION" ]; then
cp $UNVERIFIED_SCRIPT /tmp/boot-media
umount /tmp/boot-media
rmdir /tmp/boot-media
- fi
+ fi
verbose-message "pl_boot: verifying downloaded script"
rm -f $VERIFIED_SCRIPT
rm -f $UNVERIFIED_SCRIPT
chmod +x $VERIFIED_SCRIPT
$VERIFIED_SCRIPT
-
+
verbose-message "pl_boot: downloaded script has returned"
done