From 3147da5a0d0c4405f5f16172589c6782c53e34d5 Mon Sep 17 00:00:00 2001
From: Daniel Gibbs <me@danielgibbs.co.uk>
Date: Sun, 4 Jan 2015 18:05:57 +0000
Subject: [PATCH] Added more errors the installer will retry on.

The installed will retry install with the following errors.

0x402
0x406
0x6
0x106
---
 functions/fn_steaminstall | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/functions/fn_steaminstall b/functions/fn_steaminstall
index 461d70e70..8f773cdac 100644
--- a/functions/fn_steaminstall
+++ b/functions/fn_steaminstall
@@ -2,11 +2,10 @@
 # LGSM fn_steaminstall function
 # Author: Daniel Gibbs
 # Website: http://danielgibbs.co.uk
-# Version: 281214
+# Version: 040115
 
 fn_steaminstallcommand(){
-echo "0x402" > .fn_steaminstall.tmp
-while [ "$(grep -c 0x402 .fn_steaminstall.tmp)" -ge "1" ]; do
+while [ -z "${counter}" ]||[ "$(grep -wc 0x402 .fn_steaminstall.tmp)" -ge "1" ]||[ "$(grep -wc 0x406 .fn_steaminstall.tmp)" -ge "1" ]||[ "$(grep -wc 0x6 .fn_steaminstall.tmp)" -ge "1" ]||[ "$(grep -wc 0x106 .fn_steaminstall.tmp)" -ge "1" ]; do
 	counter=$((counter+1))
 	if [ "${counter}" -le "10" ]; then
 		if [ "${counter}" -ge "2" ]; then