Parent Directory | Revision Log
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 |
Name | Value |
---|---|
svn:executable | * |
ViewVC Help | |
Powered by ViewVC 1.1.26 |