[PATCH] xrexecd-localapp-plugins32.diff
CyberOrg <[email protected]>
| Newsgroups | gmane.linux.terminal-server.devel |
|---|---|
| Message-ID | <[email protected]> |
Hello Community
The attached patch uses browser plugin that are installed on the
server if it is 32bit.
Regards
-J
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_____________________________________________________________________
Ltsp-developer mailing list. To un-subscribe, or change prefs, goto:
https://lists.sourceforge.net/lists/listinfo/ltsp-developer
For additional LTSP help, try #ltsp channel on irc.freenode.net
xrexecd-localapp-plugins32.diff
(text/x-patch, 1 KB)
--- a/xrexecd/ldm-rc.d/S01-localapps 2008-08-31 17:46:38.000000000 +0530
+++ b/xrexecd/ldm-rc.d/S01-localapps 2008-08-31 17:53:36.000000000 +0530
@@ -84,6 +84,14 @@
# Mount the home directory
sshfs -o allow_other,ControlPath=${LDM_SOCKET} ${LDM_SERVER}:${LDM_HOME} ${LDM_HOME}
+ #get browser plugins from server only if the server is 32bit
+ SERVER_ARCH=`ssh -S ${LDM_SOCKET} ${LDM_SERVER} "/bin/uname -m"`
+ [ "$SERVER_ARCH" = "i586" ] && SERVER_ARCH=i386
+ [ "$SERVER_ARCH" = "i686" ] && SERVER_ARCH=i386
+ if [ $SERVER_ARCH == "i386" ]; then
+ sshfs -o allow_other,nonempty,ControlPath=${LDM_SOCKET} ${LDM_SERVER}:/usr/lib/browser-plugins/ /usr/lib/browser-plugins
+ fi
+
#Launch the xrexecd to handle the apps
(
echo $! > $XREXECD_PIDFILE
@@ -96,6 +104,9 @@
# Unmount sshfs and remove the mount dir
fusermount -uqz ${LDM_HOME}
+ if [ $SERVER_ARCH == "i386" ]; then
+ fusermount -uqz /usr/lib/browser-plugins
+ fi
rmdir ${LDM_HOME}
rm $XREXECD_PIDFILE
)&