Gentoo-Upgrade/sbin/e4rat_finalize.sh

17 lines
433 B
Bash
Raw Permalink Normal View History

2012-08-31 13:35:46 +04:00
#!/bin/bash
2012-08-31 14:43:17 +04:00
let timeout=0`grep --color=NO '^[ \t]*timeout' /etc/e4rat.conf | head -n1 | awk '{print $2}'`
2012-08-31 14:20:47 +04:00
[ 0 -eq $timeout ] && timeout=120
2012-08-31 14:43:17 +04:00
startup_log_file=`grep --color=NO '^[ \t]*\<startup_log_file\>' /etc/e4rat.conf | awk '{print $2}'`
[[ "" == "$startup_log_file" ]] && startup_log_file=/var/lib/e4rat/startup.log
2012-08-31 13:35:46 +04:00
sleep $timeout
e4rat-collect -k
pkill e4rat-collect
2012-08-31 14:43:17 +04:00
e4rat-realloc $startup_log_file
2012-08-31 13:35:46 +04:00
e4rat_switch.sh preload