Useless cat
- https://en.wikipedia.org/wiki/Cat_(Unix)#Useless_use_of_cat
This commit is contained in:
parent
08a726aa04
commit
bd968ccf87
6
hyperfi
6
hyperfi
@ -253,7 +253,7 @@ diskpartautodos(){
|
||||
echo -e "n\np\n\n\n+512M\na\nw" | fdisk ${device}
|
||||
sleep 1
|
||||
echo "${txtautopartcreate//%1/swap}"
|
||||
swapsize=$(cat /proc/meminfo | grep MemTotal | awk '{ print $2 }')
|
||||
swapsize=$(grep MemTotal /proc/meminfo | awk '{ print $2 }')
|
||||
swapsize=$((${swapsize}/1000))"M"
|
||||
echo -e "n\np\n\n\n+${swapsize}\nt\n\n82\nw" | fdisk ${device}
|
||||
sleep 1
|
||||
@ -288,7 +288,7 @@ diskpartautogpt(){
|
||||
echo "${txtautopartcreate//%1/boot}"
|
||||
sgdisk ${device} -n=2:0:+512M
|
||||
echo "${txtautopartcreate//%1/swap}"
|
||||
swapsize=$(cat /proc/meminfo | grep MemTotal | awk '{ print $2 }')
|
||||
swapsize=$(grep MemTotal /proc/meminfo | awk '{ print $2 }')
|
||||
swapsize=$((${swapsize}/1000))"M"
|
||||
sgdisk ${device} -n=3:0:+${swapsize} -t=3:8200
|
||||
echo "${txtautopartcreate//%1/root}"
|
||||
@ -319,7 +319,7 @@ diskpartautoefi(){
|
||||
echo "${txtautopartcreate//%1/EFI boot}"
|
||||
sgdisk ${device} -n=1:0:+1024M -t=1:ef00
|
||||
echo "${txtautopartcreate//%1/swap}"
|
||||
swapsize=$(cat /proc/meminfo | grep MemTotal | awk '{ print $2 }')
|
||||
swapsize=$(grep MemTotal /proc/meminfo | awk '{ print $2 }')
|
||||
swapsize=$((${swapsize}/1000))"M"
|
||||
sgdisk ${device} -n=3:0:+${swapsize} -t=3:8200
|
||||
echo "${txtautopartcreate//%1/root}"
|
||||
|
Loading…
x
Reference in New Issue
Block a user