Changeset 59402 in vbox for trunk/src/VBox/Additions/linux/installer
- Timestamp:
- Jan 19, 2016 8:45:00 AM (9 years ago)
- svn:sync-xref-src-repo-rev:
- 105104
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/linux/installer/autorun.sh
r58351 r59402 144 144 145 145 # 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 146 151 echo "basedir=default 147 152 runlevel=nocheck … … 155 160 space=quit 156 161 mail= 157 " > /tmp/vbox.autoinstall162 " > $TMPFILE 158 163 159 164 # check gnome-terminal, use it if it exists. … … 161 166 # use su/pfexec 162 167 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'" 164 169 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'" 166 171 fi 167 172 elif test -f "/usr/X11/bin/xterm"; then 168 173 # use xterm 169 174 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" 171 176 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" 173 178 fi 174 179 else 175 180 echo "No suitable terminal not found. -- install additions using pkgadd -d." 176 rm -f /tmp/vbox.autoinstall177 181 fi 182 rm -r $TMPFILE 178 183 179 184 exit 0
Note:
See TracChangeset
for help on using the changeset viewer.