Add warn() function to log warnings but not die()
authorPhilippe Seewer <philippe.seewer@bfh.ch>
Tue, 16 Jun 2009 16:05:45 +0000 (18:05 +0200)
committerPhilippe Seewer <philippe.seewer@bfh.ch>
Wed, 17 Jun 2009 06:37:40 +0000 (08:37 +0200)
modules.d/99base/dracut-lib

index 9cd515b..00c21bd 100644 (file)
@@ -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