forked from shaba/openuds
small thinpro fix
This commit is contained in:
parent
ce2d2b1c2e
commit
f702c144fc
@ -1,11 +1,12 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
# Common part
|
||||||
|
|
||||||
# unlocks so we can write on TC
|
# unlocks so we can write on TC
|
||||||
fsunlock
|
fsunlock
|
||||||
# Common part
|
|
||||||
cp UDSClient /bin/udsclient
|
cp UDSClient /bin/udsclient
|
||||||
chmod 755 /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
|
# RDP Script for UDSClient. Launchs udsclient using the "Template_UDS" profile
|
||||||
cp udsrdp /usr/bin
|
cp udsrdp /usr/bin
|
||||||
|
|
||||||
@ -13,7 +14,7 @@ INSTALLED=0
|
|||||||
# Installation for 7.1.x version
|
# Installation for 7.1.x version
|
||||||
grep -q "7.1" /etc/issue
|
grep -q "7.1" /etc/issue
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
echo "Installing for 7.1 version"
|
echo "Installing for thinpro version 7.1"
|
||||||
# Allow UDS apps without asking
|
# Allow UDS apps without asking
|
||||||
cp firefox7.1/syspref.js /etc/firefox
|
cp firefox7.1/syspref.js /etc/firefox
|
||||||
# Copy handlers.json for firefox
|
# Copy handlers.json for firefox
|
||||||
@ -21,9 +22,8 @@ if [ $? -eq 0 ]; then
|
|||||||
cp firefox7.1/handlers.json /lib/UDSClient/firefox/
|
cp firefox7.1/handlers.json /lib/UDSClient/firefox/
|
||||||
# and runner
|
# and runner
|
||||||
cp firefox7.1/45-uds /etc/hptc-firefox-mgr/prestart
|
cp firefox7.1/45-uds /etc/hptc-firefox-mgr/prestart
|
||||||
INSTALLED=1
|
|
||||||
else
|
else
|
||||||
echo "Installing for > 7.1 version"
|
echo "Installing for thinpro version 7.2 or later"
|
||||||
# Copy handlers for firefox
|
# Copy handlers for firefox
|
||||||
mkdir -p /lib/UDSClient/firefox/ > /dev/null 2>&1
|
mkdir -p /lib/UDSClient/firefox/ > /dev/null 2>&1
|
||||||
# Copy handlers.json for firefox
|
# Copy handlers.json for firefox
|
||||||
@ -32,13 +32,7 @@ else
|
|||||||
# copy uds handler for firefox
|
# copy uds handler for firefox
|
||||||
cp firefox/uds /usr/share/hptc-firefox-mgr/handlers/uds
|
cp firefox/uds /usr/share/hptc-firefox-mgr/handlers/uds
|
||||||
chmod 755 /usr/share/hptc-firefox-mgr/handlers/uds
|
chmod 755 /usr/share/hptc-firefox-mgr/handlers/uds
|
||||||
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
|
fi
|
||||||
|
|
||||||
|
# Common part
|
||||||
fslock
|
fslock
|
||||||
|
Loading…
Reference in New Issue
Block a user