summaryrefslogblamecommitdiffstats
path: root/core/modules/printergui/data/opt/openslx/scripts/systemd-printergui_preparation
blob: d130f47024c9e0c9284105730bdb6b4379196f82 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11










                                       
                            


                         
                                             



      
#!/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 -n "$SRCDIR"/* "$DESTDIR"

cd "$SRCDIR"
for i in "$DESTDIR"/*; do
        ln -sf "$PRINTPWGUI" $(basename "$i")
done

exit 0