summaryrefslogtreecommitdiffstats
path: root/build_tools/clarch/larch/profiles/MV-local/rootoverlay/etc/rc.local
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2008-11-11 23:18:42 (GMT)
committerJames Meyer <james.meyer@operamail.com>2008-11-11 23:18:42 (GMT)
commit52b76328ff61765861da32a3c4c14b9a89dfb1ba (patch)
tree68f126550b32aba0cd379ab6cecac20037633c6d /build_tools/clarch/larch/profiles/MV-local/rootoverlay/etc/rc.local
parent4e51947ec7bdf7da4762de246a6117cd29b2777b (diff)
downloadlinhes_dev-52b76328ff61765861da32a3c4c14b9a89dfb1ba.zip
MythVantage profile
Diffstat (limited to 'build_tools/clarch/larch/profiles/MV-local/rootoverlay/etc/rc.local')
-rwxr-xr-xbuild_tools/clarch/larch/profiles/MV-local/rootoverlay/etc/rc.local21
1 files changed, 21 insertions, 0 deletions
diff --git a/build_tools/clarch/larch/profiles/MV-local/rootoverlay/etc/rc.local b/build_tools/clarch/larch/profiles/MV-local/rootoverlay/etc/rc.local
new file mode 100755
index 0000000..c1b0154
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/MV-local/rootoverlay/etc/rc.local
@@ -0,0 +1,21 @@
+#!/bin/bash
+. /etc/profile
+. ${MV_ROOT}/bin/install_functions.sh
+#install initial database
+pacman -S --noconfirm mythdb-initial 2>/dev/null
+
+init_network
+/etc/rc.d/alsa-utils start 0
+init_remote
+random_theme
+
+echo $CMDLINE | grep -q NoX
+if [ $? = 0 ]
+then
+ echo "No auto X option found"
+ /usr/bin/chvt 2
+else
+ /root/startx &
+fi
+
+