diff options
| author | Simon Rettberg | 2014-02-09 19:09:38 +0100 |
|---|---|---|
| committer | Simon Rettberg | 2014-02-09 19:09:38 +0100 |
| commit | 9d280e98d7287c428c17c161d882055521066edf (patch) | |
| tree | b9bc79b82e89ce8f493d62aee3bdc04025fc7a17 /remote/modules/printergui/data/opt/openslx/scripts/systemd-printergui_preparation | |
| parent | [rfs-stage31] Last benchmark event moved before umount (diff) | |
| parent | [printergui, vmchooser] Bugfixes, net systemd service etc., printpwgui (diff) | |
| download | tm-scripts-9d280e98d7287c428c17c161d882055521066edf.tar.gz tm-scripts-9d280e98d7287c428c17c161d882055521066edf.tar.xz tm-scripts-9d280e98d7287c428c17c161d882055521066edf.zip | |
Merge branch 'master' of simonslx:openslx-ng/tm-scripts
Diffstat (limited to 'remote/modules/printergui/data/opt/openslx/scripts/systemd-printergui_preparation')
| -rwxr-xr-x | remote/modules/printergui/data/opt/openslx/scripts/systemd-printergui_preparation | 20 |
1 files changed, 20 insertions, 0 deletions
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 + |
