VirtualBox

Ignore:
Timestamp:
Jan 19, 2016 8:45:00 AM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
105104
Message:

Additions/linux/installer: autorun.sh fix for Solaris guests

File:
1 edited

Legend:

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

    r58351 r59402  
    144144
    145145        # create temporary admin file for autoinstall
     146        TMPFILE=`mktemp -q /tmp/vbox.XXXXXX`
     147        if [ -z $TMPFILE ]; then
     148            echo "Unable to create a temporary file"
     149            exit 1
     150        fi
    146151        echo "basedir=default
    147152runlevel=nocheck
     
    155160space=quit
    156161mail=
    157 " > /tmp/vbox.autoinstall
     162" > $TMPFILE
    158163
    159164        # check gnome-terminal, use it if it exists.
     
    161166            # use su/pfexec
    162167            if test -z "$subin"; then
    163                 /usr/bin/gnome-terminal --title "Installing VirtualBox Additions" --command "/bin/sh -c '$pfexecbin $pkgaddbin -G -d $installfile -n -a /tmp/vbox.autoinstall SUNWvboxguest; /bin/echo press ENTER to close this window; /bin/read; /bin/rm -f /tmp/vbox.autoinstall'"
     168                /usr/bin/gnome-terminal --title "Installing VirtualBox Additions" --command "/bin/sh -c '$pfexecbin $pkgaddbin -G -d $installfile -n -a $TMPFILE SUNWvboxguest; /bin/echo press ENTER to close this window; /bin/read'"
    164169            else
    165                 /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; /bin/rm -f /tmp/vbox.autoinstall'"
     170                /usr/bin/gnome-terminal --title "Installing VirtualBox Additions: Root password required." --command "/bin/sh -c '$subin - root -c \"$pkgaddbin -G -d $installfile -n -a $TMPFILE SUNWvboxguest\"; /bin/echo press ENTER to close this window; /bin/read'"
    166171            fi
    167172        elif test -f "/usr/X11/bin/xterm"; then
    168173            # use xterm
    169174            if test -z "$subin"; then
    170                 /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; /bin/rm -f /tmp/vbox.autoinstall"
     175                /usr/X11/bin/xterm -title "Installing VirtualBox Additions" -e "$pfexecbin $pkgaddbin -G -d $installfile -n -a $TMPFILE SUNWvboxguest; /bin/echo press ENTER to close this window; /bin/read"
    171176            else
    172                 /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; /bin/rm -f /tmp/vbox.autoinstall"
     177                /usr/X11/bin/xterm -title "Installing VirtualBox Additions: Root password required." -e "$subin - root -c \"$pkgaddbin -G -d $installfile -n -a $TMPFILE SUNWvboxguest\"; /bin/echo press ENTER to close this window; /bin/read"
    173178            fi
    174179        else
    175180            echo "No suitable terminal not found. -- install additions using pkgadd -d."
    176             rm -f /tmp/vbox.autoinstall
    177181        fi
     182        rm -r $TMPFILE
    178183
    179184        exit 0
Note: See TracChangeset for help on using the changeset viewer.

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