Various compilation scripts & patches for Linux programs.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

13 lines
363 B

#!/bin/bash
NEWSIZE=$(( 1024* $(kdialog --inputbox "Please enter new size in gigabytes (GB)")));
while [ $# -gt 0 ]; do
VBOXMACHINE=$1
VBoxManage modifyhd "$VBOXMACHINE" --resize $NEWSIZE
shift
done
if [[ "$NEWSIZE" == ?(-)+([0-9]) ]]; then
kdialog --msgbox "Done. Use a live-cd to extend the partition." --title "Resize VirtualBox Machine"
fi