Created
April 5, 2016 17:33
-
-
Save plainspooky/55a23237b9f7445b1e6e267174ef0449 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
GUESTCD='https://www.virtualbox.org/download/testcase/VBoxGuestAdditions_5.0.17-106140.iso' | |
MYPWD=$( pwd ) | |
yum install --assumeyes gcc kernel-devel-$( uname -r ) wget | |
cd /tmp | |
wget -c ${GUESTCD} | |
mount -o ro,loop $( echo ${GUESTCD} | sed 's/http.*\///g' ) /mnt | |
cd /mnt | |
./VBoxLinuxAdditions.run | |
cd ${MYPWD} | |
umount /mnt | |
rm -f $( echo ${GUESTCD} | sed 's/http.*\///g' ) | |
exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment