diff options
-rw-r--r-- | Makefile | 3 | ||||
-rw-r--r-- | bootlog | 9 | ||||
-rw-r--r-- | functions | 2 | ||||
-rwxr-xr-x | rc.multi | 6 | ||||
-rwxr-xr-x | rc.single | 2 |
5 files changed, 18 insertions, 4 deletions
@@ -1,5 +1,5 @@ VER := $(shell git describe) -DIRS := /etc/rc.d /etc/conf.d /etc/rc.d/functions.d /sbin /etc/bash_completion.d /usr/share/zsh/site-functions +DIRS := /etc/rc.d /etc/conf.d /etc/rc.d/functions.d /etc/logrotate.d /sbin /etc/bash_completion.d /usr/share/zsh/site-functions minilogd: minilogd.o @@ -9,6 +9,7 @@ installdirs: install: minilogd installdirs install -m644 -t $(DESTDIR)/etc inittab rc.conf install -m755 -t $(DESTDIR)/etc rc.local rc.local.shutdown rc.multi rc.shutdown rc.single rc.sysinit + install -m644 -t $(DESTDIR)/etc/logrotate.d bootlog install -m644 -t $(DESTDIR)/etc/rc.d functions install -m755 -t $(DESTDIR)/etc/rc.d hwclock network netfs install -m755 -t $(DESTDIR)/sbin minilogd rc.d @@ -0,0 +1,9 @@ +/var/log/boot { + compress + rotate 1 + size=+1024k + notifempty + missingok + copytruncate + noolddir +} @@ -71,7 +71,7 @@ if [[ $USECOLOR =~ yes|YES ]]; then C_FAIL="\e[1;31m" # failed C_DONE="${C_MAIN}" # completed C_BKGD="\e[1;35m" # backgrounded - C_H1="${$C_MAIN}" # highlight text 1 + C_H1="${C_MAIN}" # highlight text 1 C_H2="\e[1;36m" # highlight text 2 fi fi @@ -27,9 +27,11 @@ fi run_hook multi_end if [[ -f /run/bootlogd.pid ]]; then - /bin/touch /var/log/boot + touch /var/log/boot kill $(< /run/bootlogd.pid) - /bin/rm -f /run/bootlogd.pid + rm -f /run/bootlogd.pid + sed -i -r -e 's/\^\[\[[0-9]?;?[0-9]?[0-9]?;?[0-9]?[0-9]?[ms]//g' \ + -e 's/\^\[(\[151|%)G//g' /var/log/boot fi # vim: set ts=2 sw=2 noet: @@ -54,6 +54,8 @@ if [[ -f /run/bootlogd.pid ]]; then touch /var/log/boot kill $(< /run/bootlogd.pid) rm -f /run/bootlogd.pid + sed -i -r -e 's/\^\[\[[0-9]?;?[0-9]?[0-9]?;?[0-9]?[0-9]?[ms]//g' \ + -e 's/\^\[(\[151|%)G//g' /var/log/boot fi # End of file |