Neuer Versuch fuer Syslog

Index Refresh bei Shutdown und Reboot angepasst
hddshutdown umgeschrieben


git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@900 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
This commit is contained in:
maniacikarus
2007-09-18 17:33:42 +00:00
parent b2b43ef5bd
commit 56b7a3e2c4
3 changed files with 20 additions and 20 deletions

View File

@@ -112,7 +112,7 @@ int main(void)
else
snprintf(buffer, STRING_SIZE - 1, "/bin/sed -e 's/^#\\?\\(\\*\\.\\*[[:blank:]]\\+@.\\+\\)$/#\\1/' /etc/syslog.conf >&%d", config_fd );
snprintf(buffer, STRING_SIZE - 1, "/bin/sed 's/.*\\/var\\/log\\/messages.*/%s \\/var\\/log\\/messages/' /etc/syslog.conf >&%d", varmessages, config_fd );
snprintf(buffer, STRING_SIZE - 1, "/bin/sed 's#.*/var/log/messages.*#%s /var/log/messages#' /etc/syslog.conf >&%d", varmessages, config_fd );
/* if the return code isn't 0 failsafe */
if ((rc = unpriv_system(buffer,99,99)) != 0)