Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mkimage-profiles
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ximper Linux
mkimage-profiles
Commits
abfd88e2
Commit
abfd88e2
authored
Dec 26, 2011
by
Michael Shigorin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
06syslog: more durability
At least it shouldn't bail out when the anticipated file just isn't there...
parent
96e89d00
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
06syslog
features.in/build-ve/image-scripts.d/06syslog
+9
-6
No files found.
features.in/build-ve/image-scripts.d/06syslog
View file @
abfd88e2
...
...
@@ -5,9 +5,12 @@
# remote syslog if you do care for reliable data anyways)
# credits: vvk@, thresh@ (2010)
sed
-i
\
-e
's,/dev/tty12,/var/log/syslog/console,'
\
-e
's,^.*/var/log/syslog/console$,#&,'
\
-e
's,-/var/log/,/var/log/,g'
\
-e
's,/var/log/,-/var/log/,g'
\
/etc/syslog.conf
CONFIG
=
/etc/syslog.conf
[
!
-f
"
$CONFIG
"
]
||
\
sed
-i
\
-e
's,/dev/tty12,/var/log/syslog/console,'
\
-e
's,^.*/var/log/syslog/console$,#&,'
\
-e
's,-/var/log/,/var/log/,g'
\
-e
's,/var/log/,-/var/log/,g'
\
"
$CONFIG
"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment