diff options
Diffstat (limited to 'remote/modules/vmchooser/data/opt/openslx/scripts/vmchooser-run_virt')
-rwxr-xr-x | remote/modules/vmchooser/data/opt/openslx/scripts/vmchooser-run_virt | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/remote/modules/vmchooser/data/opt/openslx/scripts/vmchooser-run_virt b/remote/modules/vmchooser/data/opt/openslx/scripts/vmchooser-run_virt index b0d01738..10a6283d 100755 --- a/remote/modules/vmchooser/data/opt/openslx/scripts/vmchooser-run_virt +++ b/remote/modules/vmchooser/data/opt/openslx/scripts/vmchooser-run_virt @@ -427,6 +427,17 @@ if [ "$vtflag" = "1" -a -n "$kvm_module" ]; then modprobe "$kvm_module" fi +# # # # # # Start printer daemon # # # # # # # +USER="$(whoami)" +SPOOLDIR="/var/spool" +QUEUE="STANDARD" + +# Start the lpdaemon listening on the given port +busybox tcpsvd -E 0.0.0.0 5515 \ + busybox lpd "$SPOOLDIR" \ + sh -c "printergui $USER $SPOOOLDIR/$QUEUE/\$DATAFILE" & + + # Copy guest configuration (with added information) config.xml to be accessed # via virtual floppy cp "$xmlfile" "/opt/openslx/etc/vmchooser/fd-loop/config.xml" |