VirtualBox

Changeset 19194 in vbox for trunk/src/VBox/Additions/linux


Ignore:
Timestamp:
Apr 27, 2009 8:27:33 AM (16 years ago)
Author:
vboxsync
Message:

Additions/linux/installer: autorun.sh added xterm support for solaris autorun.

File:
1 edited

Legend:

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

    r19164 r19194  
    9292" >> /tmp/vbox.autoinstall
    9393
     94        # check gnome-terminal, use it if it exists.
    9495        if test -f "/usr/bin/gnome-terminal"; then
    9596            # use su/pfexec
     
    99100                /usr/bin/gnome-terminal --title "Installing VirtualBox Additions: Root password required." --command "/bin/sh -c '$subin - root -c \"$pkgaddbin -G -d $installfile -n -a /tmp/vbox.autoinstall SUNWvboxguest\"; /bin/echo press ENTER to close this window; /bin/read'"
    100101            fi
     102        elif test -f "/usr/X11/bin/xterm"; then
     103            # use xterm
     104            if test -z "$subin"; then
     105                /usr/X11/bin/xterm -title "Installing VirtualBox Additions" -e "$pfexecbin $pkgaddbin -G -d $installfile -n -a /tmp/vbox.autoinstall SUNWvboxguest; /bin/echo press ENTER to close this window; /bin/read"
     106            else
     107                /usr/X11/bin/xterm -title "Installing VirtualBox Additions: Root password required." -e "$subin - root -c \"$pkgaddbin -G -d $installfile -n -a /tmp/vbox.autoinstall SUNWvboxguest\"; /bin/echo press ENTER to close this window; /bin/read"
     108            fi
    101109        else
    102             echo "gnome-terminal not found."
     110            echo "No suitable terminal not found. -- install additions using pkgadd -d."
    103111        fi
    104112
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