diff options
author | Karel Kočí <karel.koci@nic.cz> | 2017-07-21 15:18:02 +0200 |
---|---|---|
committer | Karel Kočí <karel.koci@nic.cz> | 2017-07-21 15:18:02 +0200 |
commit | 0b6005c830b1e949f3a64391c8451d9651c1574a (patch) | |
tree | 688e174b1641506912d0e97f4741a03b1df95d02 /turtetris/files | |
parent | f091daffe7f6fcfb21c8ca2e83b4ff916b70b7df (diff) | |
download | turris-myrepo-0b6005c830b1e949f3a64391c8451d9651c1574a.tar.gz turris-myrepo-0b6005c830b1e949f3a64391c8451d9651c1574a.tar.bz2 turris-myrepo-0b6005c830b1e949f3a64391c8451d9651c1574a.zip |
Add turtetris
Diffstat (limited to 'turtetris/files')
-rwxr-xr-x | turtetris/files/master.init | 15 | ||||
-rwxr-xr-x | turtetris/files/slave.init | 15 | ||||
-rw-r--r-- | turtetris/files/uci | 3 |
3 files changed, 33 insertions, 0 deletions
diff --git a/turtetris/files/master.init b/turtetris/files/master.init new file mode 100755 index 0000000..46176c5 --- /dev/null +++ b/turtetris/files/master.init @@ -0,0 +1,15 @@ +#!/bin/sh /etc/rc.common +# Copyright (C) 2006-2011 OpenWrt.org + +USE_PROCD=1 + +START=101 + +start_service() { + procd_open_instance + procd_set_param command python3 -m turtetris_master + procd_set_param respawn + procd_set_param stdout 1 + procd_set_param stderr 1 + procd_close_instance +} diff --git a/turtetris/files/slave.init b/turtetris/files/slave.init new file mode 100755 index 0000000..cc843ca --- /dev/null +++ b/turtetris/files/slave.init @@ -0,0 +1,15 @@ +#!/bin/sh /etc/rc.common +# Copyright (C) 2006-2011 OpenWrt.org + +USE_PROCD=1 + +START=100 + +start_service() { + procd_open_instance + procd_set_param command python3 -m turtetris_slave + procd_set_param respawn + procd_set_param stdout 1 + procd_set_param stderr 1 + procd_close_instance +} diff --git a/turtetris/files/uci b/turtetris/files/uci new file mode 100644 index 0000000..d33219b --- /dev/null +++ b/turtetris/files/uci @@ -0,0 +1,3 @@ + +config 1 'line' + |