Clean code
This commit is contained in:
parent
2690ddaebc
commit
417fe5237f
1 changed files with 13 additions and 13 deletions
26
archfi
26
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
|
||||
|
|
Loading…
Reference in a new issue