Ben's notes

Linux, Unix, network, radio...

User Tools

Site Tools


centos_6.5_on_apu_-_kickstart_file

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
centos_6.5_on_apu_-_kickstart_file [2014/05/26 07:27] admincentos_6.5_on_apu_-_kickstart_file [2014/05/26 07:28] admin
Line 90: Line 90:
 trimlog=/var/log/fstrim.log trimlog=/var/log/fstrim.log
 echo > \$trimlog echo > \$trimlog
-for mount in \`lsblk -ro \"rota,rm,fstype,mountpoint\" | egrep \"0 0 ext[2|3|4]\" | cut -d \\" -f4\`; do+for mount in \`lsblk -ro "rota,rm,fstype,mountpoint" | egrep "0 0 ext[2|3|4]" | cut -d " " -f4\`; do
   printf "\`date\` - \`fstrim -v \$mount\`\n" >>\$trimlog   printf "\`date\` - \`fstrim -v \$mount\`\n" >>\$trimlog
 done done
centos_6.5_on_apu_-_kickstart_file.txt · Last modified: 2021/10/09 15:14 by 127.0.0.1