- handle fs acls internally instead of passing device names to resmgr
[opensuse:hal-resmgr.git] / hal-resmgr-grant
1 #!/bin/sh
2 if [ "$UDI" = '/org/freedesktop/Hal/devices/computer' ]; then
3         udi=
4 else
5         udi="--udi=$UDI"
6 fi
7 result=`/usr/sbin/hal-resmgr $udi --grant="$HAL_METHOD_INVOKED_BY_UID" 2>&1`
8 if [ "$?" != 0 ]; then
9         echo 'org.freedesktop.Hal.Device.resmgr.error'
10         echo "$result"
11         exit 1
12 fi
13 exit 0