Gentoo-Upgrade/sbin/e4rat_finalize.sh

14 lines
279 B
Bash
Raw Normal View History

2012-08-31 13:35:46 +04:00
#!/bin/bash
let timeout=0`grep --color=NO '^[ \t]*timeout' /etc/e4rat.conf | head -n1 | sed 's~[^0-9]\+\([0-9]\+\).*~\1~'`
2012-08-31 14:20:47 +04:00
[ 0 -eq $timeout ] && timeout=120
2012-08-31 13:35:46 +04:00
sleep $timeout
e4rat-collect -k
pkill e4rat-collect
e4rat-realloc /var/lib/e4rat/startup.log
e4rat_switch.sh preload