VirtualBox

Changeset 36681 in vbox for trunk/src/VBox/Installer


Ignore:
Timestamp:
Apr 15, 2011 10:17:02 AM (14 years ago)
Author:
vboxsync
Message:

Installers/linux: more autorun hacking

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Installer/linux/runasroot.sh

    r36667 r36681  
    2424  exit 1
    2525fi
     26
     27HAS_TERMINAL=""
     28case "$1" in "--has-terminal")
     29    shift
     30    HAS_TERMINAL="yes"
     31    ;;
     32esac
    2633
    2734case "$#" in "2"|"3")
     
    5865    esac
    5966
    60     KDESU="`mywhich kdesu`"
    61     case "$KDESU" in ?*)
    62         "$KDESU" -c "$COMMAND"
    63         exit
    64         ;;
    65     esac
    66 
    6767    GKSU="`mywhich gksu`"
    6868    case "$GKSU" in ?*)
     
    8181# are installed.  However it is very generic and does not allow for any
    8282# 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 ?*)
    8385PKEXEC="`mywhich pkexec`"
    8486case "$PKEXEC" in ?*)
    8587    eval "\"$PKEXEC\" $COMMAND"
    8688    exit
     89    ;;
     90esac
     91#    ;;S
     92#esac
     93
     94case "$HAS_TERMINAL" in ?*)
     95    SU="`mywhich su`"
     96    case "$SU" in ?*)
     97        "$SU" - root -c "$COMMAND"
     98        exit
     99        ;;
     100    esac
    87101    ;;
    88102esac
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette