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

32 lines
834 B
Bash
Raw Normal View History

2022-01-12 15:20:33 +03:00
#!/bin/sh
# unlocks so we can write on TC
fsunlock
# Common part
cp UDSClient /bin/udsclient
chmod 755 /bin/udsclient
cp UDSClient.desktop /usr/share/applications/UDSClient.desktop
# 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
# Allow UDS apps without asking
cp firefox7.1/syspref.js /etc/firefox
# Copy handlers for firefox
mkdir -p /lib/UDSClient/firefox/ > /dev/null 2>&1
cp firefox7.1/handlers.json /lib/UDSClient/firefox/
cp firefox7.1/45-uds /etc/hptc-firefox-mgr/prestart
INSTALLED=1
fi
# If not installed, show a message
if [ $INSTALLED -eq 0 ]; then
echo "UDSClient is not installable for this version of ThinPro: "
cat /etc/issue
fi
fslock