Changeset 36681 in vbox for trunk/src/VBox/Installer
- Timestamp:
- Apr 15, 2011 10:17:02 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Installer/linux/runasroot.sh
r36667 r36681 24 24 exit 1 25 25 fi 26 27 HAS_TERMINAL="" 28 case "$1" in "--has-terminal") 29 shift 30 HAS_TERMINAL="yes" 31 ;; 32 esac 26 33 27 34 case "$#" in "2"|"3") … … 58 65 esac 59 66 60 KDESU="`mywhich kdesu`"61 case "$KDESU" in ?*)62 "$KDESU" -c "$COMMAND"63 exit64 ;;65 esac66 67 67 GKSU="`mywhich gksu`" 68 68 case "$GKSU" in ?*) … … 81 81 # are installed. However it is very generic and does not allow for any 82 82 # custom messages. Thus it comes after gksu. 83 ## @todo should we insist on either a display or a terminal? 84 # case "$DISPLAY$HAS_TERMINAL" in ?*) 83 85 PKEXEC="`mywhich pkexec`" 84 86 case "$PKEXEC" in ?*) 85 87 eval "\"$PKEXEC\" $COMMAND" 86 88 exit 89 ;; 90 esac 91 # ;;S 92 #esac 93 94 case "$HAS_TERMINAL" in ?*) 95 SU="`mywhich su`" 96 case "$SU" in ?*) 97 "$SU" - root -c "$COMMAND" 98 exit 99 ;; 100 esac 87 101 ;; 88 102 esac
Note:
See TracChangeset
for help on using the changeset viewer.