/[vz-tools]/trunk/vz-usb.sh
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Contents of /trunk/vz-usb.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 68 - (show annotations)
Sun Mar 1 11:50:04 2009 UTC (15 years, 1 month ago) by dpavlin
File MIME type: application/x-sh
File size: 362 byte(s)
make all usb devices visible to contailer for printing

http://wiki.openvz.org/USB_Printing_in_VE

1 #!/bin/sh
2
3 # based on http://wiki.openvz.org/USB_Printing_in_VE
4
5 private=/mnt/llin/private/
6
7 echo "# copy usb devices"
8 find /dev/bus/usb/ | cpio -pvd $private
9
10 DEVICES=`ls -alR /dev/bus/usb/ | grep ^c | cut -c1,23- | cut -d" " -f 1,2,3 | sed -e 's/[ ,] */:/g' -e 's/$/:rw/' | xargs echo`
11 echo -e "\nAdd following to /etc/vz/veid.conf:\nDEVICES=\"$DEVICES\"\n";
12

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.26