From 2fa9696eac4c7c3a0402eb4bb63cc9ed35e1b580 Mon Sep 17 00:00:00 2001 From: Christian Rößler Date: Fri, 7 Feb 2014 19:09:01 +0100 Subject: [printergui, vmchooser] Bugfixes, net systemd service etc., printpwgui --- .../openslx/scripts/systemd-printergui_preparation | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100755 remote/modules/printergui/data/opt/openslx/scripts/systemd-printergui_preparation (limited to 'remote/modules/printergui/data/opt/openslx/scripts') diff --git a/remote/modules/printergui/data/opt/openslx/scripts/systemd-printergui_preparation b/remote/modules/printergui/data/opt/openslx/scripts/systemd-printergui_preparation new file mode 100755 index 00000000..33a861e6 --- /dev/null +++ b/remote/modules/printergui/data/opt/openslx/scripts/systemd-printergui_preparation @@ -0,0 +1,20 @@ +#!/bin/ash + +ERR=0 +SRCDIR=/usr/lib/cups/backend +DESTDIR=/opt/openslx/cups/backend +PRINTPWGUI=/opt/openslx/cups/printpwgui + +if [ ! -d "$DESTDIR" ]; then + mkdir -p "$DESTDIR" || exit 1 +fi + +mv "$SRCDIR"/* "$DESTDIR" + +cd "$SRCDIR" +for i in "$DESTDIR"/*; do + ln -sf "$PRINTPWGUI" $(basename "$i") +done + +exit 0 + -- cgit v1.2.3-55-g7522