openuds/client-py3/full/linux/thinpro/install-uds-client.sh

39 lines
1.1 KiB
Bash
Raw Normal View History

2022-01-12 15:20:33 +03:00
#!/bin/sh
2022-01-18 15:34:33 +03:00
# Common part
2022-01-12 15:20:33 +03:00
# unlocks so we can write on TC
fsunlock
2022-01-18 15:34:33 +03:00
2022-01-12 15:20:33 +03:00
cp UDSClient /bin/udsclient
chmod 755 /bin/udsclient
# RDP Script for UDSClient. Launchs udsclient using the "Template_UDS" profile
cp udsrdp /usr/bin
INSTALLED=0
# Installation for 7.1.x version
grep -q "7.1" /etc/issue
if [ $? -eq 0 ]; then
2022-01-18 15:34:33 +03:00
echo "Installing for thinpro version 7.1"
2022-01-12 15:20:33 +03:00
# Allow UDS apps without asking
cp firefox7.1/syspref.js /etc/firefox
2022-01-18 15:18:24 +03:00
# Copy handlers.json for firefox
2022-01-12 15:20:33 +03:00
mkdir -p /lib/UDSClient/firefox/ > /dev/null 2>&1
cp firefox7.1/handlers.json /lib/UDSClient/firefox/
2022-01-18 15:18:24 +03:00
# and runner
2022-01-12 15:20:33 +03:00
cp firefox7.1/45-uds /etc/hptc-firefox-mgr/prestart
2022-01-18 15:18:24 +03:00
else
2022-01-18 15:34:33 +03:00
echo "Installing for thinpro version 7.2 or later"
2022-01-18 15:18:24 +03:00
# Copy handlers for firefox
mkdir -p /lib/UDSClient/firefox/ > /dev/null 2>&1
# Copy handlers.json for firefox
cp firefox/handlers.json /lib/UDSClient/firefox/
cp firefox/45-uds /etc/hptc-firefox-mgr/prestart
# copy uds handler for firefox
cp firefox/uds /usr/share/hptc-firefox-mgr/handlers/uds
chmod 755 /usr/share/hptc-firefox-mgr/handlers/uds
2022-01-12 15:20:33 +03:00
fi
2022-01-18 15:34:33 +03:00
# Common part
2022-01-12 15:20:33 +03:00
fslock