diff options
author | James Meyer <james.meyer@operamail.com> | 2008-11-08 01:55:11 (GMT) |
---|---|---|
committer | James Meyer <james.meyer@operamail.com> | 2008-11-08 01:55:11 (GMT) |
commit | 6c8f178b6c8874623e780d2c049a49b780237654 (patch) | |
tree | 31cd168b3e87c9777dc1bcd5d57f4e806a3c97f7 /abs/core-testing/LinHES-config/startx | |
parent | 4287d6026a61f8760633574c059f6e2dead2619d (diff) | |
download | linhes_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-x | abs/core-testing/LinHES-config/startx | 29 |
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 |