From 417fe5237f1105577399e6d98907faaddd92865d Mon Sep 17 00:00:00 2001 From: MatMoul Date: Sat, 10 Oct 2015 21:50:48 +0200 Subject: [PATCH] Clean code --- archfi | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/archfi b/archfi index 15aebd9..74620bc 100644 --- a/archfi +++ b/archfi @@ -104,16 +104,16 @@ setkeymap(){ 3>&1 1>&2 2>&3) if [ "$?" = "0" ]; then clear - echo "loadkeys $keymap" + #echo "loadkeys $keymap" loadkeys $keymap - pressanykey + #pressanykey fi } rebootpc(){ if (whiptail --backtitle "$apptitle" --title "$txtreboot" --yesno "$txtreboot ?" --defaultno 0 0) then clear - echo "reboot" + #echo "reboot" reboot fi } @@ -190,28 +190,28 @@ diskpartautodos(){ if (whiptail --backtitle "$apptitle" --title "$txtautoparts (dos)" --yesno "${txtautopartsconfirm//%1/$device}" --defaultno 0 0) then clear echo "$txtautopartclear" - echo "parted $device mklabel msdos" + #echo "parted $device mklabel msdos" parted $device mklabel msdos - echo "sleep 1" + #echo "sleep 1" sleep 1 echo "${txtautopartcreate//%1/boot}" - echo "echo -e \"n\np\n\n\n+512M\na\nw\" | fdisk $device" + #echo "echo -e \"n\np\n\n\n+512M\na\nw\" | fdisk $device" echo -e "n\np\n\n\n+512M\na\nw" | fdisk $device - echo "sleep 1" + #echo "sleep 1" sleep 1 echo "${txtautopartcreate//%1/swap}" - echo "swapsize=$(cat /proc/meminfo | grep MemTotal | awk '{ print $2 }')" + #echo "swapsize=$(cat /proc/meminfo | grep MemTotal | awk '{ print $2 }')" swapsize=$(cat /proc/meminfo | grep MemTotal | awk '{ print $2 }') - echo "swapsize=$(($swapsize/1000))\"M\"" + #echo "swapsize=$(($swapsize/1000))\"M\"" swapsize=$(($swapsize/1000))"M" - echo "echo -e \"n\np\n\n\n+$swapsize\nt\n\n82\nw\" | fdisk $device" + #echo "echo -e \"n\np\n\n\n+$swapsize\nt\n\n82\nw\" | fdisk $device" echo -e "n\np\n\n\n+$swapsize\nt\n\n82\nw" | fdisk $device - echo "sleep 1" + #echo "sleep 1" sleep 1 echo "${txtautopartcreate//%1/root}" - echo "echo -e \"n\np\n\n\n\nw\" | fdisk $device" + #echo "echo -e \"n\np\n\n\n\nw\" | fdisk $device" echo -e "n\np\n\n\n\nw" | fdisk $device - echo "sleep 1" + #echo "sleep 1" sleep 1 echo "" pressanykey