summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorDavid Zeuthen <david@fubar.dk>2006-03-26 20:13:03 +0000
committerDavid Zeuthen <david@fubar.dk>2006-03-26 20:13:03 +0000
commit4911c62f67b2ece6ba96ee933ef490c76bb859ad (patch)
tree469408bc28d0dc9d848ca72610ba29b709d80ccd /tools
parent67eb90b9016775f12db2c32143e033ff5c527df8 (diff)
s/--policy/--privilege/ and s/--uid/--user/
Diffstat (limited to 'tools')
-rwxr-xr-xtools/hal-system-power-hibernate2
-rwxr-xr-xtools/hal-system-power-reboot2
-rwxr-xr-xtools/hal-system-power-shutdown2
-rwxr-xr-xtools/hal-system-power-suspend2
-rwxr-xr-xtools/hal-system-storage-eject2
-rwxr-xr-xtools/hal-system-storage-unmount2
6 files changed, 6 insertions, 6 deletions
diff --git a/tools/hal-system-power-hibernate b/tools/hal-system-power-hibernate
index b8f7807c..9f4075f7 100755
--- a/tools/hal-system-power-hibernate
+++ b/tools/hal-system-power-hibernate
@@ -12,7 +12,7 @@ unsupported() {
POLICY=hal-power-hibernate
if [ "$HAL_METHOD_INVOKED_BY_UID" != "0" ] ; then
- polkit-is-privileged --policy $POLICY --uid $HAL_METHOD_INVOKED_BY_UID
+ polkit-is-privileged --privilege $POLICY --user $HAL_METHOD_INVOKED_BY_UID
IS_PRIVILEGED=$?
if [ "$IS_PRIVILEGED" != "0" ] ; then
echo org.freedesktop.Hal.Device.PermissionDeniedByPolicy >&2
diff --git a/tools/hal-system-power-reboot b/tools/hal-system-power-reboot
index 367b794a..4c92e444 100755
--- a/tools/hal-system-power-reboot
+++ b/tools/hal-system-power-reboot
@@ -8,7 +8,7 @@ unsupported() {
POLICY=hal-power-reboot
if [ "$HAL_METHOD_INVOKED_BY_UID" != "0" ] ; then
- polkit-is-privileged --policy $POLICY --uid $HAL_METHOD_INVOKED_BY_UID
+ polkit-is-privileged --privilege $POLICY --user $HAL_METHOD_INVOKED_BY_UID
IS_PRIVILEGED=$?
if [ "$IS_PRIVILEGED" != "0" ] ; then
echo org.freedesktop.Hal.Device.PermissionDeniedByPolicy >&2
diff --git a/tools/hal-system-power-shutdown b/tools/hal-system-power-shutdown
index 4e11d76e..327a9584 100755
--- a/tools/hal-system-power-shutdown
+++ b/tools/hal-system-power-shutdown
@@ -8,7 +8,7 @@ unsupported() {
POLICY=hal-power-poweroff
if [ "$HAL_METHOD_INVOKED_BY_UID" != "0" ] ; then
- polkit-is-privileged --policy $POLICY --uid $HAL_METHOD_INVOKED_BY_UID
+ polkit-is-privileged --privilege $POLICY --user $HAL_METHOD_INVOKED_BY_UID
IS_PRIVILEGED=$?
if [ "$IS_PRIVILEGED" != "0" ] ; then
echo org.freedesktop.Hal.Device.PermissionDeniedByPolicy >&2
diff --git a/tools/hal-system-power-suspend b/tools/hal-system-power-suspend
index d2220e18..03452da0 100755
--- a/tools/hal-system-power-suspend
+++ b/tools/hal-system-power-suspend
@@ -18,7 +18,7 @@ unsupported() {
POLICY=hal-power-suspend
if [ "$HAL_METHOD_INVOKED_BY_UID" != "0" ] ; then
- polkit-is-privileged --policy $POLICY --uid $HAL_METHOD_INVOKED_BY_UID
+ polkit-is-privileged --privilege $POLICY --user $HAL_METHOD_INVOKED_BY_UID
IS_PRIVILEGED=$?
if [ "$IS_PRIVILEGED" != "0" ] ; then
echo org.freedesktop.Hal.Device.PermissionDeniedByPolicy >&2
diff --git a/tools/hal-system-storage-eject b/tools/hal-system-storage-eject
index 861939fd..97ec10d9 100755
--- a/tools/hal-system-storage-eject
+++ b/tools/hal-system-storage-eject
@@ -26,7 +26,7 @@ fi
# TODO: need to select storage-[fixed|removable][-change-uid]
#POLICY=hal-storage-fixed-mount
#if [ "$HAL_METHOD_INVOKED_BY_UID" != "0" ] ; then
-# polkit-is-privileged --policy $POLICY --uid $HAL_METHOD_INVOKED_BY_UID
+# polkit-is-privileged --privilege $POLICY --user $HAL_METHOD_INVOKED_BY_UID
# IS_PRIVILEGED=$?
# if [ "$IS_PRIVILEGED" != "0" ] ; then
# echo org.freedesktop.Hal.Device.PermissionDeniedByPolicy >&2
diff --git a/tools/hal-system-storage-unmount b/tools/hal-system-storage-unmount
index bccc16b0..8f9ecc04 100755
--- a/tools/hal-system-storage-unmount
+++ b/tools/hal-system-storage-unmount
@@ -46,7 +46,7 @@ fi
# TODO: need to select storage-[fixed|removable][-change-uid]
#POLICY=hal-storage-fixed-mount
#if [ "$HAL_METHOD_INVOKED_BY_UID" != "0" ] ; then
-# polkit-is-privileged --policy $POLICY --uid $HAL_METHOD_INVOKED_BY_UID
+# polkit-is-privileged --privilege $POLICY --user $HAL_METHOD_INVOKED_BY_UID
# IS_PRIVILEGED=$?
# if [ "$IS_PRIVILEGED" != "0" ] ; then
# echo org.freedesktop.Hal.Device.PermissionDeniedByPolicy >&2