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
359 B

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