summaryrefslogtreecommitdiffstats
path: root/init_functions
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2012-12-23 19:58:36 +0100
committerDave Reisner <dreisner@archlinux.org>2013-05-07 19:17:39 +0200
commitd662258b8769af81a036b7d4cd0af0a66e33dbb2 (patch)
treeae972606b1e8acadaa78ebbbff727efa1923df05 /init_functions
parent40a62e9c5fb70b02ade89965dea6d2cb96672017 (diff)
downloadmkinitcpio-d662258b8769af81a036b7d4cd0af0a66e33dbb2.tar.gz
mkinitcpio-d662258b8769af81a036b7d4cd0af0a66e33dbb2.tar.xz
init: redirect /proc/cmdline to parse_cmdline
This makes it easier to test parse_cmdline. Signed-off-by: Dave Reisner <dreisner@archlinux.org>
Diffstat (limited to 'init_functions')
-rw-r--r--init_functions2
1 files changed, 1 insertions, 1 deletions
diff --git a/init_functions b/init_functions
index ff6a3b4..dc4361a 100644
--- a/init_functions
+++ b/init_functions
@@ -72,7 +72,7 @@ run_hookfunctions() {
parse_cmdline() {
local _w _quoted _lhs _rhs _cmdline
- read -r _cmdline </proc/cmdline
+ read -r _cmdline
for _w in $_cmdline; do
if [ -z "$_quoted" ]; then
case $_w in