summaryrefslogtreecommitdiffstats
path: root/abs/core-testing/LinHES-system/firstboot.sh
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2008-11-14 16:08:56 (GMT)
committerJames Meyer <james.meyer@operamail.com>2008-11-14 16:08:56 (GMT)
commite5077f0f7459d6f91d44a1135d7150910e0b1f62 (patch)
treecf792f71cf050541602853e4674b7b3501610cf5 /abs/core-testing/LinHES-system/firstboot.sh
parentb2a8ec177417a2f5d380f8e9d05bca3c2f8aa291 (diff)
downloadlinhes_pkgbuild-e5077f0f7459d6f91d44a1135d7150910e0b1f62.zip
linhes_pkgbuild-e5077f0f7459d6f91d44a1135d7150910e0b1f62.tar.gz
linhes_pkgbuild-e5077f0f7459d6f91d44a1135d7150910e0b1f62.tar.bz2
Add smolt to start on first boot.
correct link location for myth_mtc.py in cron.daily
Diffstat (limited to 'abs/core-testing/LinHES-system/firstboot.sh')
-rwxr-xr-xabs/core-testing/LinHES-system/firstboot.sh44
1 files changed, 44 insertions, 0 deletions
diff --git a/abs/core-testing/LinHES-system/firstboot.sh b/abs/core-testing/LinHES-system/firstboot.sh
new file mode 100755
index 0000000..366874a
--- /dev/null
+++ b/abs/core-testing/LinHES-system/firstboot.sh
@@ -0,0 +1,44 @@
+#!/bin/bash
+. ~/.configured
+ATTEMPT=0
+function try_smolt {
+ ((ATTEMPT=ATTEMPT+1))
+ echo $ATTEMPT
+ status=$(echo "jump mythsmolt" | telnet localhost 6546 2>&1)
+ echo $status|grep -q refused
+ status=$?
+ if [ $status != 0 ]
+ then
+ fb_status=0
+ echo "FB=NO" > ~/.configured
+ fi
+ if [ $ATTEMPT = 200 ]
+ then
+ fb_status=0
+ fi
+}
+
+if [ ! -e /tmp/debug ]
+then
+ if [ ! -e /tmp/nomfe ]
+ then
+ if [ ! -e ~/.mythtv/pub-uuid ]
+ then
+ if [ x$FB != xNO ]
+ then
+ fb_status=4
+ while [ $fb_status != 0 ]
+ do
+ try_smolt
+ if [ $fb_status != 0 ]
+ then
+ sleep 1
+ fi
+ done
+ fi
+ fi
+ fi
+fi
+
+
+