VirtualBox

Changeset 36681 in vbox


Ignore:
Timestamp:
Apr 15, 2011 10:17:02 AM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
71184
Message:

Installers/linux: more autorun hacking

Location:
trunk/src/VBox
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/linux/installer/autorun.sh

    r36658 r36681  
    5050            case "$gxtpath" in ?*)
    5151                TITLE="VirtualBox Guest Additions installation"
    52                 TITLE_QUOTED=`quotify "$TITLE"`
    53                 BINARY=`quotify $i`
    54                 exec /bin/sh "$path/runasroot.sh" \
    55                     "$TITLE" \
    56                     "$gxtpath $gxttitle $TITLE_QUOTED $gxtexec $BINARY --xwin" \
    57                     "Please try running $i manually."
     52               BINARY="`quotify "$i"`"
     53                exec "$gxtpath" "$gxttitle" "$TITLE" "$gxtexec" "$path/runasroot.sh" --has-terminal "$TITLE" "$BINARY --xwin" "Please try running "\""$i"\"" manually."
    5854                exit
    5955                ;;
  • 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