[Fai-commit] r6633 - trunk/lib
Thomas Lange
lange at alioth.debian.org
Thu Jul 21 16:21:28 UTC 2011
Author: lange
Date: 2011-07-21 16:21:27 +0000 (Thu, 21 Jul 2011)
New Revision: 6633
Modified:
trunk/lib/subroutines
Log:
improve matching of cmdline (closes: #607285, #632350)
Modified: trunk/lib/subroutines
===================================================================
--- trunk/lib/subroutines 2011-07-21 12:54:04 UTC (rev 6632)
+++ trunk/lib/subroutines 2011-07-21 16:21:27 UTC (rev 6633)
@@ -700,13 +700,16 @@
echo -n "Kernel currently running: "
uname -rsmo
echo -n "Kernel parameters: "; cat /proc/cmdline
+ shopt -s extglob
for word in $(cat /proc/cmdline) ; do
case $word in
- [a-zA-Z]*=*)
+ *([a-zA-Z0-9_])=*)
eval "export $word"
;;
esac
done
+ shopt -u extglob
+
}
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
### BEGIN SUBROUTINE INFO
More information about the Fai-commit
mailing list