summaryrefslogtreecommitdiff
path: root/os/platforms/v1/run.sh
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2018-06-30 05:55:02 +0300
committerDevaev Maxim <[email protected]>2018-06-30 06:04:43 +0300
commitc0aee642467655952d701e37f284a7a589d638e2 (patch)
tree8099740f9a2c28b8354f3d2154fd857aa4d420a3 /os/platforms/v1/run.sh
parent0cfb3c5dbc91fa8f4c33114beb36c356965f497f (diff)
reorganized project structure
Diffstat (limited to 'os/platforms/v1/run.sh')
-rwxr-xr-xos/platforms/v1/run.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/os/platforms/v1/run.sh b/os/platforms/v1/run.sh
new file mode 100755
index 00000000..525d7756
--- /dev/null
+++ b/os/platforms/v1/run.sh
@@ -0,0 +1,18 @@
+#!/bin/sh
+set -e
+set -x
+
+. ../functions.sh
+
+
+cp config.txt "$FS/boot/config.txt"
+pkg_install \
+ kvmd \
+ mjpg-streamer-pikvm \
+ nginx
+
+cp index.html "$FS/srv/http/"
+cp kvmd.yaml "$FS/etc/"
+cp nginx.conf "$FS/etc/nginx/"
+rpi systemctl enable kvmd
+rpi systemctl enable nginx