]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
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 9cd515b84d1354ab70820b2ee23f3e690892853e..00c21bd40a7ea9f45528ff016947592379a89ef9 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