blob: 987962d57ee379966942c984ccda6569fcbb9b6e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#!/bin/sh
# this is from /etc/init.d/vmware-USBArbitrator
# changed to work on uids >= 1000
for user in `awk -F'[/:]' '{if ($3 == 0 || ($3 >= 1000 && $3 != 65534)) print $1}' /etc/passwd`
do
aUser=$user
aGroup=`id -g $aUser`
aUID=`id -u $aUser`
if ! [ -f /var/run/vmware/"$aUID" ] ; then
mkdir -p /var/run/vmware/"$aUID"
chown -R -- "$aUser":"$aGroup" /var/run/vmware/"$aUID"
chmod 700 /var/run/vmware/"$aUID"
fi
done
/usr/lib/vmware/view/usb/vmware-eucusbarbitrator
|