projects
/
platform
/
upstream
/
dracut.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0fd1ab9
)
Add warn() function to log warnings but not die()
author
Philippe Seewer
<philippe.seewer@bfh.ch>
Tue, 16 Jun 2009 16:05:45 +0000
(18:05 +0200)
committer
Philippe Seewer
<philippe.seewer@bfh.ch>
Wed, 17 Jun 2009 06:37:40 +0000
(08:37 +0200)
modules.d/99base/dracut-lib
patch
|
blob
|
history
diff --git
a/modules.d/99base/dracut-lib
b/modules.d/99base/dracut-lib
index
9cd515b
..
00c21bd
100644
(file)
--- a/
modules.d/99base/dracut-lib
+++ b/
modules.d/99base/dracut-lib
@@
-27,6
+27,10
@@
die() {
exit 1
}
+warn() {
+ printf "<1>Warning: $1\n" > /dev/kmsg
+}
+
check_occurances() {
# Count the number of times the character $ch occurs in $str
# Return 0 if the count matches the expected number, 1 otherwise