summaryrefslogtreecommitdiffstats
path: root/abs/core-testing/LinHES-config/startx
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2008-11-08 01:55:11 (GMT)
committerJames Meyer <james.meyer@operamail.com>2008-11-08 01:55:11 (GMT)
commit6c8f178b6c8874623e780d2c049a49b780237654 (patch)
tree31cd168b3e87c9777dc1bcd5d57f4e806a3c97f7 /abs/core-testing/LinHES-config/startx
parent4287d6026a61f8760633574c059f6e2dead2619d (diff)
downloadlinhes_pkgbuild-6c8f178b6c8874623e780d2c049a49b780237654.zip
linhes_pkgbuild-6c8f178b6c8874623e780d2c049a49b780237654.tar.gz
linhes_pkgbuild-6c8f178b6c8874623e780d2c049a49b780237654.tar.bz2
rename live-installer to LinHES-config
Diffstat (limited to 'abs/core-testing/LinHES-config/startx')
-rwxr-xr-xabs/core-testing/LinHES-config/startx29
1 files changed, 29 insertions, 0 deletions
diff --git a/abs/core-testing/LinHES-config/startx b/abs/core-testing/LinHES-config/startx
new file mode 100755
index 0000000..0ffdf8c
--- /dev/null
+++ b/abs/core-testing/LinHES-config/startx
@@ -0,0 +1,29 @@
+#!/bin/bash
+. /etc/profile
+
+export USER=root
+export HOME=/root
+#TEMPLATES=/usr/share/templates
+
+CMDLINE=$(cat /proc/cmdline)
+TEMPVAR=${CMDLINE#*ip=}
+IP=${TEMPVAR%% *}
+echo $CMDLINE |grep -q vnc
+USEVNC=$?
+
+if [ x$USEVNC = x1 ]
+then
+ $MV_ROOT/bin/xconfig.sh
+ cat /etc/X11/xorg.conf | sed -e 's/dev\/mouse/dev\/psaux/g'> /root/xorg.conf.install
+ startx /root/live-install.sh -- -config /root/xorg.conf.install -allowMouseOpenFail
+ else
+ #VNC
+ pacman -Sf --noconfirm tightvnc
+ cd /root
+ mkdir .vnc
+ echo mythvantage |vncpasswd -f > /root/.vnc/passwd
+ chmod 500 /root/.vnc/passwd
+ rm /root/.vnc/xstartup
+ ln -s /root/live-install.sh /root/.vnc/xstartup
+ vncserver
+fi