aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLiam McLoughlin <hexxeh@hexxeh.net>2011-07-12 18:40:57 +0100
committerLiam McLoughlin <hexxeh@hexxeh.net>2011-07-12 18:40:57 +0100
commit41ec6159b82c727eccb0f06b2d983933531990c3 (patch)
tree291cfb2c72c4c477f540e2c33c438a8a737dbed4 /wrap.sh
parentFixed hostname setting and changed Gearman daemon/client to meet Zend coding ... (diff)
downloadgentoaster-41ec6159b82c727eccb0f06b2d983933531990c3.tar.gz
gentoaster-41ec6159b82c727eccb0f06b2d983933531990c3.tar.bz2
gentoaster-41ec6159b82c727eccb0f06b2d983933531990c3.zip
Dropping WebUI stuff in a new branch, lots of this stuff needs tidying up and is very messy or broken
Diffstat (limited to 'wrap.sh')
-rwxr-xr-xwrap.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/wrap.sh b/wrap.sh
new file mode 100755
index 0000000..9a2cc65
--- /dev/null
+++ b/wrap.sh
@@ -0,0 +1,11 @@
+#!/bin/bash
+
+# this is a dirty hack that will be disappearing soon
+# just saves me restarting the daemon every time i want to change something
+
+cd /usr/share/websockify
+MEMORY=512
+DISP=$(( ${2}-5900 ))
+DISP2=$(( ${2}+1000 ))
+qemu -hda $1 -m ${MEMORY} -net nic -net user -vnc :$DISP -usbdevice tablet &
+websockify -D ${DISP2} 127.0.0.1:${2}