Your Name 7 years ago
parent
commit
a946fd9290
1 changed files with 2 additions and 6 deletions
  1. 2 6
      setup_amd.sh

+ 2 - 6
setup_amd.sh

@@ -57,12 +57,8 @@ sleep 4
 sed -i -e "s/# set const/set const/g" /etc/nanorc
 
 echo -e "\n\e[95mExpand Disk :\e[0m"
-myDrive=`df -h | grep /dev/sda | awk ' { print $1 }'`
-myDrive1=`df -h | grep /dev/sda | awk ' { print $1 }'| cut -c -8`
-echo "My drive :$myDrive"
-echo "My drive1:$myDrive1"
-sudo growpart $myDrive 1 |true
-sudo resize2fs $myDrive1 |true
+sudo growpart `df -h | grep /dev/sd | awk ' { print $1 }'| cut -c -8` 1 |true
+sudo resize2fs `df -h | grep /dev/sd | awk ' { print $1 }'`  |true
 echo -e "\e[97mDone !\e[0m"
 
 echo -e "\n\e[95mSystem Update :\e[0m"