[PC-BSD Commits] r7282 - pcbsd/current/system-overlay/usr/local/bin
svn at pcbsd.org
svn at pcbsd.org
Sun Jul 25 07:59:45 PDT 2010
Author: kris
Date: 2010-07-25 07:59:45 -0700 (Sun, 25 Jul 2010)
New Revision: 7282
Modified:
pcbsd/current/system-overlay/usr/local/bin/runpbi
Log:
Set runpbi to use pc-su as well
Modified: pcbsd/current/system-overlay/usr/local/bin/runpbi
===================================================================
--- pcbsd/current/system-overlay/usr/local/bin/runpbi 2010-07-25 14:58:15 UTC (rev 7281)
+++ pcbsd/current/system-overlay/usr/local/bin/runpbi 2010-07-25 14:59:45 UTC (rev 7282)
@@ -1,22 +1,7 @@
#!/bin/sh
+# Script which calls the PBI gui installer on the target PBI
PBIGUI="pc-pbigui"
-# See if we are running as root
-if [ `id -r -u` = "0" ] ; then
- # Find the right "su" program to use
- which kdesu >/dev/null 2>/dev/null
- if [ "$?" = "0" ] ; then
- kdesu ${PBIGUI} "$1"
- exit 0
- fi
- which gksu >/dev/null 2>/dev/null
- if [ "$?" = "0" ] ; then
- gksu ${PBIGUI} "$1"
- exit 0
- fi
-else
- # Run the GUI now
- $PBIGUI "$1"
- exit 0
-fi
+# Run the PBI gui installer as root
+pc-su $PBIGUI "$1"
More information about the Commits
mailing list