1
0
mirror of https://github.com/dkmstr/openuds.git synced 2025-01-08 21:18:00 +03:00

Adding thinstation stuff

This commit is contained in:
Adolfo Gómez García 2017-05-16 13:30:47 +02:00
parent 9265ab3ac3
commit 9d6f3111da
12 changed files with 73 additions and 0 deletions

View File

@ -0,0 +1,10 @@
Steps:
1.- Copy the folder "udsclient" to /build/packages inside the thinstation build environment
2.- enter the chroot of thinstation
3.- go to the udsclient folder (/build/packages/udsclient)
4.- Execute "build.sh"
5.- Edit the file /build/build.conf, and add this line:
package udsclient
6.- Execute the build process
Ready!!!

View File

View File

@ -0,0 +1,2 @@
lib

View File

@ -0,0 +1,5 @@
#!/bin/bash
pip install paramiko requests six
rm -rf lib
mkdir -p lib/python2.7/site-packages
for a in requests paramiko pyasn1 cryptography packaging idna asn1crypto six enum ipaddress cffi ; do cp -r /usr/lib/python2.7/site-packages/$a* lib/python2.7/site-packages/; done

View File

@ -0,0 +1,3 @@
base
#add your own dependancies to this file, base should always be included.
python

View File

@ -0,0 +1,15 @@
In here you place the commands to start your application if using the scripts
/etc/thinstation.packages
or /etc/thinstation.console
see examples for for information
possible types are
example.global (this is always needed)
example.menu
example.console
example.window
example.fullscreen

View File

@ -0,0 +1 @@
CMD_FULLSCREEN="example -FULLSCREEN"

View File

@ -0,0 +1 @@
CMD_GLOBAL="example -startapp"

View File

@ -0,0 +1 @@
Place a 0 length file in here as the same name as the package if your application is a Console App

View File

@ -0,0 +1,34 @@
#! /bin/sh
. /etc/thinstation.global
# note you can replace this package with a symlink to /etc/thinstation.packages
# for GUI apps, or /etc/thinstation.console for console apps
# if you do then you will need to create a seperate initilization script for
# any other parameters which need to be started at bootup
case "$1" in
init)
if ! pkg_initialized $PACKAGE; then
# Your startup instructions go here
pkg_set_init_flag $PACKAGE
fi
;;
console)
;;
window)
;;
fullscreen)
;;
help)
echo "Usage: $0 init"
;;
*)
exit 1
;;
esac
exit 0

View File

@ -0,0 +1 @@
/etc/init.d/your_start_up_script