summaryrefslogtreecommitdiff
path: root/config/chroot_local-hooks
diff options
context:
space:
mode:
Diffstat (limited to 'config/chroot_local-hooks')
-rwxr-xr-xconfig/chroot_local-hooks/install_silverlight.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/config/chroot_local-hooks/install_silverlight.sh b/config/chroot_local-hooks/install_silverlight.sh
new file mode 100755
index 0000000..691de40
--- /dev/null
+++ b/config/chroot_local-hooks/install_silverlight.sh
@@ -0,0 +1,13 @@
+#!/bin/bash
+[ -x /opt/wine-compholio/bin/wine ] || exit 0
+export WINE=/opt/wine-compholio/bin/wine
+export WINEARCH=win32
+export WINEDLLOVERRIDES="mscoree,mshtml="
+export WINEPREFIX="/etc/skel/.wine-pipelight/"
+export DISPLAY=:1
+Xvfb :1 -screen 0 1024x768x16 &
+/usr/share/wine-browser-installer/download-missing-files wine-silverlight5.1-installer
+/usr/share/wine-browser-installer/install-dependency wine-silverlight5.1-installer
+kill $!
+apt-get --yes --purge remove xvfb
+apt-get --yes --purge autoremove